mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Ignore common commands
This commit is contained in:
parent
120823fd2e
commit
d0e09a7149
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue