Make zsh histignore only match exactly
This commit is contained in:
parent
f2d543b12d
commit
c21fae8271
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -22,7 +22,7 @@ export PROMPT_gitlong='$(gitprompt && echo -ne " ")%F5$(git log --oneline --no-d
|
||||||
# export PS1nogit=
|
# export PS1nogit=
|
||||||
# export PS1git=
|
# export PS1git=
|
||||||
|
|
||||||
export HISTORY_IGNORE='(ls|vimswitch|clear)*'
|
export HISTORY_IGNORE='(ls|vimswitch|clear)'
|
||||||
zshaddhistory() {
|
zshaddhistory() {
|
||||||
[[ $1 != ${~HISTORY_IGNORE} ]]
|
[[ $1 != ${~HISTORY_IGNORE} ]]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue