* integration/bash: Don't setup again on reload

This commit is contained in:
Akib Azmain Turja 2022-12-03 19:21:28 +06:00
parent 55c7d21cef
commit 729717b84f
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

View file

@ -4,7 +4,11 @@ function _eat_prompt_command () {
}
# Add '_eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
PROMPT_COMMAND[${#PROMPT_COMMAND[*]}]=_eat_prompt_command
if [ -z "$_eat_bash_integration_enabled" ]
then
_eat_bash_integration_enabled=yes
PROMPT_COMMAND[${#PROMPT_COMMAND[*]}]=_eat_prompt_command
fi
# Local Variables:
# mode: sh