Fix zsh dotfile installation
1 file changed, 9 insertions(+), 1 deletion(-)
jump to
M hooks/post-up/zsh → hooks/post-up/zsh
@@ -4,7 +4,15 @@ pushd $ZDOTDIR for f in z*(-.) do - [[ -e .$f ]] || ln $f .$f + if [[ -e $f ]] + then + if [[ ! -h .$f ]] + then + echo "$f already exists as a regular file, ignoring" + fi + else + ln -s $f .$f + fi done popd