13 lines
298 B
Text
13 lines
298 B
Text
|
# vim:ft=zsh
|
||
|
function incognito() {
|
||
|
if [[ -n $ZSH_INCOGNITO ]]; then
|
||
|
add-zsh-hook precmd _atuin_precmd
|
||
|
add-zsh-hook preexec _atuin_preexec
|
||
|
unset ZSH_INCOGNITO
|
||
|
else
|
||
|
add-zsh-hook -d precmd _atuin_precmd
|
||
|
add-zsh-hook -d preexec _atuin_preexec
|
||
|
export ZSH_INCOGNITO=1
|
||
|
fi
|
||
|
}
|