From ead1a063a2fb9189bc697be2120b24cf3f3dd56a Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 11 Aug 2015 12:07:59 +0200 Subject: [PATCH] zshrc,dirstack: Remove useless test At this point, $dirstack is always empty so the test is always true. --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) -- 2.1.4