1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 03:25:42 +08: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