diff --git a/lib/history.bash b/lib/history.bash index f7d3303c..a1a7cb04 100644 --- a/lib/history.bash +++ b/lib/history.bash @@ -2,10 +2,10 @@ # Bash History Handling -shopt -s histappend # append to bash_history if Terminal.app quits -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 +shopt -s histappend # append to bash_history if Terminal.app quits +export HISTCONTROL=${HISTCONTROL:-ignorespace: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