restore history options
This commit is contained in:
parent
fc198102de
commit
69a7371808
1 changed files with 6 additions and 3 deletions
9
bash_rc
9
bash_rc
|
@ -31,11 +31,14 @@ source "${HOME}/.bashrc_ps1"
|
||||||
|
|
||||||
# Format history records
|
# Format history records
|
||||||
export HISTTIMEFORMAT="[%s] "
|
export HISTTIMEFORMAT="[%s] "
|
||||||
|
|
||||||
# Append to history file
|
# Append to history file
|
||||||
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
#PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||||
|
|
||||||
# Share between shells
|
# Share between shells
|
||||||
PROMPT_COMMAND="history -c; history -r; $PROMPT_COMMAND"
|
#PROMPT_COMMAND="history -c; history -r; $PROMPT_COMMAND"
|
||||||
# Don't overwrite it history
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
# Unlimited history
|
# Unlimited history
|
||||||
export HISTFILESIZE=
|
export HISTFILESIZE=
|
||||||
|
|
Loading…
Reference in a new issue