projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: Include current directory in persistent dirstack
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
f7c332b
..
c1a619f
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1064,10
+1064,12
@@
if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then
fi
chpwd() {
fi
chpwd() {
+ local -ax my_stack
+ my_stack=( ${PWD} ${dirstack} )
if is42 ; then
if is42 ; then
- builtin print -l ${(u)
dir
stack} >! ${DIRSTACKFILE}
+ builtin print -l ${(u)
my_
stack} >! ${DIRSTACKFILE}
else
else
- uprint
dir
stack >! ${DIRSTACKFILE}
+ uprint
my_
stack >! ${DIRSTACKFILE}
fi
}
fi
}