export HISTCONTROL=ignoredups export HISTCONTROL=ignoreboth HISTSIZE=50000 shopt -s histappend PROMPT_COMMAND='history -a' #history search inline #bind '"\e[A": history-search-backward' #bind '"\e[B": history-search-forward'