mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-28 20:12:38 +00:00
Remove preceding semicolon in PROMPT_COMMAND
This commit is contained in:
parent
e3c3c181a2
commit
06f5a8e684
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user