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
|
||||
export HISTTIMEFORMAT="[%s] "
|
||||
|
||||
# Append to history file
|
||||
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||
#PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||
|
||||
# Share between shells
|
||||
PROMPT_COMMAND="history -c; history -r; $PROMPT_COMMAND"
|
||||
# Don't overwrite it history
|
||||
#PROMPT_COMMAND="history -c; history -r; $PROMPT_COMMAND"
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# Unlimited history
|
||||
export HISTFILESIZE=
|
||||
|
|
Loading…
Reference in a new issue