Merge pull request #678 from trinitronx/overridable-history

Make all vars defined in lib/history.bash overridable
pull/681/merge
Nils Winkler 2016-03-14 08:15:19 +01:00
commit ac06de3c92
1 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
# Bash History Handling
shopt -s histappend # append to bash_history if Terminal.app quits
export HISTCONTROL=erasedups # erase duplicates; alternative option: export HISTCONTROL=ignoredups
export HISTSIZE=5000 # resize history size
export AUTOFEATURE=true autotest
export HISTCONTROL=${HISTCONTROL:-erasedups} # erase duplicates; alternative option: export HISTCONTROL=ignoredups
export HISTSIZE=${HISTSIZE:-5000} # resize history size
export AUTOFEATURE=${AUTOFEATURE:-true autotest} # Cucumber / Autotest integration
function rh {
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head