diff --git a/.bashrc b/.bashrc index 0ccc0df..9096795 100644 --- a/.bashrc +++ b/.bashrc @@ -5,7 +5,7 @@ # readline bind "set editing-mode vi" -bind "set keyseq-timeout 50" +bind "set keyseq-timeout 0" bind "set show-mode-in-prompt on" bind "set vi-ins-mode-string \1\e[01;35m\2+\1\e[0m\2" bind "set vi-cmd-mode-string :" @@ -36,6 +36,13 @@ alias ls="ls --color=auto" alias ll="ls -AF1" alias lll="ls -AFlh" +# history +shopt -u histappend +HISTSIZE=-1 +HISTFILESIZE=-1 +HISTIGNORE='exit:q:ls:ll:lll' +HISTCONTROL='ignoreboth:erasedups' + # bash completion if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then