diff --git a/templates/bash.txt b/templates/bash.txt index 007aa32..9ef450f 100644 --- a/templates/bash.txt +++ b/templates/bash.txt @@ -52,7 +52,7 @@ if [ "${__zoxide_hooked}" != '1' ]; then {%- if hook == Hook::None %} {{ NOT_CONFIGURED }} {%- else %} - PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND};}__zoxide_hook" + PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND:+${PROMPT_COMMAND}}" {%- endif %} fi