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:
cdc48e8
)
zshrc,dirstack: Remove useless test
author
Frank Terbeck
<ft@grml.org>
Tue, 11 Aug 2015 10:07:59 +0000
(12:07 +0200)
committer
Frank Terbeck
<ft@grml.org>
Tue, 11 Aug 2015 10:07:59 +0000
(12:07 +0200)
At this point, $dirstack is always empty so the test is always true.
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
72fde6e
..
f6434ca
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1617,7
+1617,7
@@
chpwd() {
builtin print -l ${GRML_PERSISTENT_DIRSTACK} >! ${DIRSTACKFILE}
}
-if [[ -f ${DIRSTACKFILE} ]]
&& [[ ${#dirstack[*]} -eq 0 ]]
; then
+if [[ -f ${DIRSTACKFILE} ]]; then
# Enabling NULL_GLOB via (N) weeds out any non-existing
# directories from the saved dir-stack file.
dirstack=( ${(f)"$(< $DIRSTACKFILE)"}(N) )