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
Ohmyzsh
Commits
6685aac4
Commit
6685aac4
authored
Nov 10, 2016
by
Marc Cornellà
Browse files
dircycle: fix error on insert-cycledleft if dirstack is empty
parent
0b340bc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/dircycle/dircycle.plugin.zsh
View file @
6685aac4
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
# pushd -N: start counting from right of `dirs' output
# pushd -N: start counting from right of `dirs' output
switch-to-dir
()
{
switch-to-dir
()
{
[[
${#
dirstack
}
-eq
0
]]
&&
return
while
!
builtin pushd
-q
$1
&>/dev/null
;
do
while
!
builtin pushd
-q
$1
&>/dev/null
;
do
# We found a missing directory: pop it out of the dir stack
# We found a missing directory: pop it out of the dir stack
builtin popd
-q
$1
builtin popd
-q
$1
...
...
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