mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-24 15:48:24 +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
|
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
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
|
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user