Append __zoxide_hook to front of PROMPT_COMMAND

This commit is contained in:
Ajeet D'Souza 2021-04-02 20:40:05 +05:30
parent d9c0584aac
commit 7c7ce873ad
1 changed files with 1 additions and 1 deletions

View File

@ -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