mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-15 10:49:21 +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
|
if [ -n "${HISHTORY_FIRST_PROMPT:-}" ]; then
|
||||||
unset HISHTORY_FIRST_PROMPT
|
unset HISHTORY_FIRST_PROMPT
|
||||||
return
|
return $EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run after every prompt
|
# Run after every prompt
|
||||||
@ -57,6 +57,8 @@ function __hishtory_postcommand() {
|
|||||||
LAST_SAVED_COMMAND=$CMD
|
LAST_SAVED_COMMAND=$CMD
|
||||||
|
|
||||||
(hishtory updateLocalDbFromRemote &)
|
(hishtory updateLocalDbFromRemote &)
|
||||||
|
|
||||||
|
return $EXIT_CODE
|
||||||
}
|
}
|
||||||
PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
|
PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
|
||||||
export HISTTIMEFORMAT=$HISTTIMEFORMAT
|
export HISTTIMEFORMAT=$HISTTIMEFORMAT
|
||||||
|
Loading…
Reference in New Issue
Block a user