projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8be9a7
)
zshrc, dirstack: Avoid chpwd() upon the very first cd calls
author
Frank Terbeck
<ft@grml.org>
Tue, 11 Aug 2015 10:07:22 +0000
(12:07 +0200)
committer
Frank Terbeck
<ft@grml.org>
Tue, 11 Aug 2015 10:07:22 +0000
(12:07 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
b6c8375
..
72fde6e
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1622,7
+1622,7
@@
if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then
# directories from the saved dir-stack file.
dirstack=( ${(f)"$(< $DIRSTACKFILE)"}(N) )
# "cd -" won't work after login by just setting $OLDPWD, so
- [[ -d $dirstack[1] ]] && cd
$dirstack[1] && cd
$OLDPWD
+ [[ -d $dirstack[1] ]] && cd
-q $dirstack[1] && cd -q
$OLDPWD
fi
if zstyle -T ':grml:chpwd:dirstack' filter-on-load; then