bashrc: fix history saving (#46)

This commit is contained in:
Mikaela Suomalainen 2014-10-07 08:24:13 +03:00
parent f26105afd4
commit 15511cb230
1 changed files with 3 additions and 0 deletions

3
bashrc
View File

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