From: Frank Terbeck Date: Tue, 11 Aug 2015 10:07:59 +0000 (+0200) Subject: zshrc,dirstack: Remove useless test X-Git-Tag: v0.12.3~1 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=ead1a063a2fb9189bc697be2120b24cf3f3dd56a zshrc,dirstack: Remove useless test At this point, $dirstack is always empty so the test is always true. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 72fde6e..f6434ca 100644 --- 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) )