all repos — archive/dotfiles @ d670075375f7bee13b6a8e7b0fe601ef8eed9f86

Superseded by nixfiles

rcm: Fix logic error in zsh post-up hook
Alan Pearce alan@alanpearce.co.uk
Fri, 08 Aug 2014 12:35:07 +0100
commit

d670075375f7bee13b6a8e7b0fe601ef8eed9f86

parent

fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M hooks/post-up/zshhooks/post-up/zsh
@@ -4,11 +4,11 @@ pushd $ZDOTDIR
 for f in z*(-.)
 do
-	if [[ -e $f ]]
+	if [[ -e .$f ]]
 	then
 		if [[ ! -h .$f ]]
 		then
-			echo "$f already exists as a regular file, ignoring"
+			echo ".$f already exists as a regular file, ignoring"
 		fi
 	else
 		ln -s $f .$f