Export HISTTIMEFORMAT so that it is available to hishtory for usage

This commit is contained in:
David Dworken 2022-09-27 22:25:57 -07:00
parent 6b29591eec
commit b5907379ac
2 changed files with 2 additions and 0 deletions

View File

@ -26,3 +26,4 @@ function __hishtory_postcommand() {
(hishtory saveHistoryEntry bash $EXIT_CODE "`history 1`" $HISHTORY_START_TIME &)
}
PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
export HISTTIMEFORMAT=$HISTTIMEFORMAT

View File

@ -27,3 +27,4 @@ function __hishtory_postcommand() {
hishtory saveHistoryEntry bash $EXIT_CODE "`history 1`" $HISHTORY_START_TIME
}
PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
export HISTTIMEFORMAT=$HISTTIMEFORMAT