Ignore common commands

This commit is contained in:
Loic Nageleisen 2020-12-21 18:15:15 +01:00
parent 120823fd2e
commit d0e09a7149
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# ignore repeated, space-started, and casual commands # 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 # enable multiline historization as a single line
shopt -s cmdhist shopt -s cmdhist

View file

@ -8,5 +8,6 @@ setopt hist_verify
HISTSIZE=100000 HISTSIZE=100000
SAVEHIST=100000 SAVEHIST=100000
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
HISTORY_IGNORE="(^ +|ls|bg|fg|pwd|exit|cd ..)"
# vim: ft=zsh # vim: ft=zsh