mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-23 23:28:32 +00:00
Prevent zoxide from changing $? in $PROMPT_COMMAND
This commit is contained in:
parent
22b945bc32
commit
abe049d5f4
@ -37,7 +37,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
|
||||
"#;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user