bashrc: fix history saving (#46)

This commit is contained in:
Mikaela Suomalainen 2014-10-07 08:24:13 +03:00
parent f26105afd4
commit 15511cb230

3
bashrc
View File

@ -26,6 +26,9 @@ fi
# If not running interactively, don't do anything # If not running interactively, don't do anything
[ -z "$PS1" ] && return [ -z "$PS1" ] && return
# save history
export PROMPT_COMMAND='history -a'
# don't put duplicate lines in the history. See bash(1) for more options # don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace # ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups HISTCONTROL=ignoredups