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

Merge pull request #1410 from jimhester/per-directory-history

Replace reset-prompt with push-line and accept-line
This commit is contained in:
Robby Russell 2012-12-01 11:36:22 -08:00
commit 26d46546a6

View file

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