Skip to content

Commit

Permalink
Remove preceding semicolon in PROMPT_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetdsouza committed Jul 21, 2021
1 parent e3c3c18 commit 06f5a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/bash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 06f5a8e

Please sign in to comment.