mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-01 05:31:48 +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 %}
|
{%- if hook == InitHook::None %}
|
||||||
{{ not_configured }}
|
{{ not_configured }}
|
||||||
{%- else %}
|
{%- 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 %}
|
{%- endif %}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user