1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

fix(per-directory-history): print toggle message properly (#10872)

This commit is contained in:
Saduff 2023-11-22 10:44:21 -07:00 committed by GitHub
parent 18073af622
commit 44a5513fcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,14 +68,14 @@ function per-directory-history-toggle-history() {
if [[ $_per_directory_history_is_global == true ]]; then
_per-directory-history-set-directory-history
_per_directory_history_is_global=false
print -n "\nusing local history"
zle -I
echo "using local history"
else
_per-directory-history-set-global-history
_per_directory_history_is_global=true
print -n "\nusing global history"
zle -I
echo "using global history"
fi
zle .push-line
zle .accept-line
}
autoload per-directory-history-toggle-history