mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-23 23:28:32 +00:00
Call _zoxide_hook last in function list
This commit is contained in:
parent
abe049d5f4
commit
45b8ddb714
@ -20,7 +20,7 @@ _zoxide_hook() {
|
||||
|
||||
case "$PROMPT_COMMAND" in
|
||||
*_zoxide_hook*) ;;
|
||||
*) PROMPT_COMMAND="_zoxide_hook${PROMPT_COMMAND:+;${PROMPT_COMMAND}}" ;;
|
||||
*) PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND};}_zoxide_hook" ;;
|
||||
esac
|
||||
"#;
|
||||
|
||||
|
@ -73,7 +73,7 @@ _zoxide_hook() {
|
||||
|
||||
case "$PS1" in
|
||||
*\$\(_zoxide_hook\)*) ;;
|
||||
*) PS1="\$(_zoxide_hook)${PS1}" ;;
|
||||
*) PS1="${PS1}\$(_zoxide_hook)" ;;
|
||||
esac
|
||||
"#;
|
||||
|
||||
@ -123,7 +123,7 @@ _zoxide_hook() {{
|
||||
|
||||
case "$PS1" in
|
||||
*\$\(_zoxide_hook\)*) ;;
|
||||
*) PS1="\$(_zoxide_hook)${{PS1}}" ;;
|
||||
*) PS1="${{PS1}}\$(_zoxide_hook)" ;;
|
||||
esac"#,
|
||||
quote(tmp_path_str),
|
||||
quote(pwd_path_str),
|
||||
|
Loading…
x
Reference in New Issue
Block a user