Append __zoxide_hook to front of PROMPT_COMMAND (#170)

This commit is contained in:
Ajeet D'Souza 2021-04-02 21:02:15 +05:30 committed by GitHub
parent d9c0584aac
commit 4224f494ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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