* integration/bash: Use '__' prefix

This commit is contained in:
Akib Azmain Turja 2022-12-03 21:30:11 +06:00
parent fa62d693f6
commit a9bf5e5248
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

View file

@ -1,13 +1,13 @@
function _eat_prompt_command () {
__eat_prompt_command () {
# Send the current working directory, for directory tracking.
printf "\\e]7;file://%s%s\\e\\\\" "$HOSTNAME" "$PWD"
}
# Add '_eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
if [ -z "$_eat_bash_integration_enabled" ]
# Add '__eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
if test -z "$__eat_bash_integration_enabled"
then
_eat_bash_integration_enabled=yes
PROMPT_COMMAND+=(_eat_prompt_command)
__eat_bash_integration_enabled=yes
PROMPT_COMMAND+=(__eat_prompt_command)
fi
# Local Variables: