Remove preceding semicolon in PROMPT_COMMAND

This commit is contained in:
Ajeet D'Souza 2021-07-21 23:22:57 +05:30
parent e3c3c181a2
commit 06f5a8e684

View File

@ -65,7 +65,11 @@ if [ "${__zoxide_hooked}" != '1' ]; then
{%- if hook == InitHook::None %}
{{ not_configured }}
{%- else %}
PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND:+${PROMPT_COMMAND}}"
if [ -z "${PROMPT_COMMAND}" ]; then
PROMPT_COMMAND='__zoxide_hook'
else
PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND#;}"
fi
{%- endif %}
fi