* integration/bash: Append to array more cleanly

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

View file

@ -7,7 +7,7 @@ function _eat_prompt_command () {
if [ -z "$_eat_bash_integration_enabled" ]
then
_eat_bash_integration_enabled=yes
PROMPT_COMMAND[${#PROMPT_COMMAND[*]}]=_eat_prompt_command
PROMPT_COMMAND+=(_eat_prompt_command)
fi
# Local Variables: