Call _zoxide_hook last in function list

This commit is contained in:
Ajeet D'Souza 2020-08-15 02:20:50 +05:30
parent abe049d5f4
commit 45b8ddb714
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ _zoxide_hook() {
case "$PROMPT_COMMAND" in case "$PROMPT_COMMAND" in
*_zoxide_hook*) ;; *_zoxide_hook*) ;;
*) PROMPT_COMMAND="_zoxide_hook${PROMPT_COMMAND:+;${PROMPT_COMMAND}}" ;; *) PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND};}_zoxide_hook" ;;
esac esac
"#; "#;

View File

@ -73,7 +73,7 @@ _zoxide_hook() {
case "$PS1" in case "$PS1" in
*\$\(_zoxide_hook\)*) ;; *\$\(_zoxide_hook\)*) ;;
*) PS1="\$(_zoxide_hook)${PS1}" ;; *) PS1="${PS1}\$(_zoxide_hook)" ;;
esac esac
"#; "#;
@ -123,7 +123,7 @@ _zoxide_hook() {{
case "$PS1" in case "$PS1" in
*\$\(_zoxide_hook\)*) ;; *\$\(_zoxide_hook\)*) ;;
*) PS1="\$(_zoxide_hook)${{PS1}}" ;; *) PS1="${{PS1}}\$(_zoxide_hook)" ;;
esac"#, esac"#,
quote(tmp_path_str), quote(tmp_path_str),
quote(pwd_path_str), quote(pwd_path_str),