diff --git a/bash/history b/bash/history index 3a1c90a..69664d3 100644 --- a/bash/history +++ b/bash/history @@ -1,5 +1,5 @@ # ignore repeated, space-started, and casual commands -export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit" +export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit:cd .." # enable multiline historization as a single line shopt -s cmdhist diff --git a/zsh/history b/zsh/history index 38316ae..6d15dec 100644 --- a/zsh/history +++ b/zsh/history @@ -8,5 +8,6 @@ setopt hist_verify HISTSIZE=100000 SAVEHIST=100000 HISTFILE=~/.zsh_history +HISTORY_IGNORE="(^ +|ls|bg|fg|pwd|exit|cd ..)" # vim: ft=zsh