mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-29 12:32:40 +00:00
Append __zoxide_hook to front of PROMPT_COMMAND (#170)
This commit is contained in:
parent
d9c0584aac
commit
4224f494ed
@ -52,7 +52,7 @@ if [ "${__zoxide_hooked}" != '1' ]; then
|
|||||||
{%- if hook == Hook::None %}
|
{%- if hook == Hook::None %}
|
||||||
{{ NOT_CONFIGURED }}
|
{{ NOT_CONFIGURED }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND};}__zoxide_hook"
|
PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND:+${PROMPT_COMMAND}}"
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user