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
18f7ca57
Commit
18f7ca57
authored
7 years ago
by
Francisco Zuviría
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adhere to coding style outlined in wiki
parent
7bb7ce62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dirhistory.plugin.zsh
plugins/dirhistory/dirhistory.plugin.zsh
+2
-2
No files found.
plugins/dirhistory/dirhistory.plugin.zsh
View file @
18f7ca57
...
@@ -144,12 +144,12 @@ bindkey "\eO3C" dirhistory_zle_dirhistory_future
...
@@ -144,12 +144,12 @@ bindkey "\eO3C" dirhistory_zle_dirhistory_future
# Move up in hierarchy
# Move up in hierarchy
function
dirhistory_up
()
{
function
dirhistory_up
()
{
cd
..
cd
..
||
return
1
}
}
# Move down in hierarchy
# Move down in hierarchy
function
dirhistory_down
()
{
function
dirhistory_down
()
{
cd
"
`
find
.
-mindepth
1
-maxdepth
1
-type
d |
sort
-n
|
head
-n
1
`
"
cd
"
$(
find
.
-mindepth
1
-maxdepth
1
-type
d |
sort
-n
|
head
-n
1
)
"
||
return
1
}
}
...
...
This diff is collapsed.
Click to expand it.
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