mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge 9ba799111c into ddb8d46e98
This commit is contained in:
commit
49400d7fe2
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue