Prevent zoxide from changing $? in $PROMPT_COMMAND

This commit is contained in:
Tom Moulard 2020-08-14 18:56:25 +02:00 committed by GitHub
parent 22b945bc32
commit abe049d5f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
"#;