Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
26d46546
Commit
26d46546
authored
Dec 01, 2012
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
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
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
per-directory-history.plugin.zsh
...ns/per-directory-history/per-directory-history.plugin.zsh
+4
-3
No files found.
plugins/per-directory-history/per-directory-history.plugin.zsh
View file @
26d46546
...
...
@@ -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
"
\n
using local history
\n
"
else
_per-directory-history-set-global-history
echo
"
using global history
\n
"
print
"
\n
using global history
\n
"
fi
zle reset-prompt
zle .push-line
zle .accept-line
}
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