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
aac55236
Commit
aac55236
authored
Aug 03, 2015
by
xiao
Browse files
Additional chpwd clobbering fix for dirpersist
parent
084792b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/dirpersist/dirpersist.plugin.zsh
View file @
aac55236
...
...
@@ -11,7 +11,9 @@ if [[ -f ${dirstack_file} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then
[[
-d
$dirstack
[
1]
]]
&&
cd
$dirstack
[
1]
&&
cd
$OLDPWD
fi
chpwd
()
{
typeset
-ga
chpwd_functions
chpwd_functions+
=
'chpwd_dirpersist'
chpwd_dirpersist
()
{
if
((
$DIRSTACKSIZE
<
=
0
))
||
[[
-z
$dirstack_file
]]
;
then return
;
fi
local
-ax
my_stack
my_stack
=(
${
PWD
}
${
dirstack
}
)
...
...
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