Make zsh histignore only match exactly

This commit is contained in:
Talia 2021-02-19 08:27:47 +01:00
parent f2d543b12d
commit c21fae8271

2
zshrc
View file

@ -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} ]]
} }