diff --git a/dot.bashrc b/dot.bashrc index aa4e59d..660d7d6 100644 --- a/dot.bashrc +++ b/dot.bashrc @@ -4,6 +4,9 @@ [[ $- != *i* ]] && return +export HISTSIZE=2000 +export HISTFILESIZE=2000 + colors() { local fgc bgc vals seq0 @@ -36,7 +39,7 @@ colors() { # Change the window title of X terminals case ${TERM} in xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) - PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' + PROMPT_COMMAND='history -a;history -n;echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' ;; screen*) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' @@ -113,6 +116,8 @@ shopt -s expand_aliases # Enable history appending instead of overwriting. #139609 shopt -s histappend +shopt -s cmdhist +export HISTCONTROL=ignoreboth:erasedups # # # ex - archive extractor