mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-14 02:08:13 +01:00
Return the exit code to ensure other prompt_commands work with hishtory, see #247
This commit is contained in:
parent
1c33189f38
commit
3a0c08cada
@ -46,7 +46,7 @@ function __hishtory_postcommand() {
|
||||
|
||||
if [ -n "${HISHTORY_FIRST_PROMPT:-}" ]; then
|
||||
unset HISHTORY_FIRST_PROMPT
|
||||
return
|
||||
return $EXIT_CODE
|
||||
fi
|
||||
|
||||
# Run after every prompt
|
||||
@ -57,6 +57,8 @@ function __hishtory_postcommand() {
|
||||
LAST_SAVED_COMMAND=$CMD
|
||||
|
||||
(hishtory updateLocalDbFromRemote &)
|
||||
|
||||
return $EXIT_CODE
|
||||
}
|
||||
PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
|
||||
export HISTTIMEFORMAT=$HISTTIMEFORMAT
|
||||
|
Loading…
Reference in New Issue
Block a user