Make all vars defined in lib/history.bash overridable. Set these before sourcing Bash-It with .bashrc or .bash_profile to override defaults

pull/678/head
James Cuzella 2016-03-11 11:28:11 -07:00
parent fd37877fbf
commit 3c9fecf967
1 changed files with 4 additions and 4 deletions

View File

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