Commit 26d46546 authored by Robby Russell's avatar Robby Russell
Browse files

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

Replace reset-prompt with push-line and accept-line
parents ddb8d46e 9ba79911
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment