mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-28 03:45:06 +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 %}
|
||||
{{ NOT_CONFIGURED }}
|
||||
{%- else %}
|
||||
PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND};}__zoxide_hook"
|
||||
PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND:+${PROMPT_COMMAND}}"
|
||||
{%- endif %}
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user