Fix the bash history appending.
This commit is contained in:
parent
8b9ef9d66c
commit
a2521e8e83
2
.bashrc
2
.bashrc
|
@ -107,7 +107,7 @@ export HISTCONTROL=ignoredups:erasedups
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
|
||||||
# After each command, save and reload history
|
# After each command, save and reload history
|
||||||
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a"
|
export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}"
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue