Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
26d46546
Commit
26d46546
authored
Dec 01, 2012
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/per-directory-history/per-directory-history.plugin.zsh
View file @
26d46546
...
@@ -65,12 +65,13 @@
...
@@ -65,12 +65,13 @@
function
per-directory-history-toggle-history
()
{
function
per-directory-history-toggle-history
()
{
if
[[
$_per_directory_history_is_global
==
true
]]
;
then
if
[[
$_per_directory_history_is_global
==
true
]]
;
then
_per-directory-history-set-directory-history
_per-directory-history-set-directory-history
echo
"
using local history
\n
"
print
"
\n
using local history
\n
"
else
else
_per-directory-history-set-global-history
_per-directory-history-set-global-history
echo
"
using global history
\n
"
print
"
\n
using global history
\n
"
fi
fi
zle reset-prompt
zle .push-line
zle .accept-line
}
}
autoload per-directory-history-toggle-history
autoload per-directory-history-toggle-history
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment