running hook after prompt function to use $? in $PS1

This commit is contained in:
Tom Moulard 2020-08-14 15:28:43 +02:00
parent a454f7cbbf
commit ec30a0bfba
No known key found for this signature in database
GPG Key ID: 401E6F65A598281D
1 changed files with 1 additions and 1 deletions

View File

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