Fix zsh dotfile installation
Alan Pearce alan@alanpearce.co.uk
Thu, 03 Jul 2014 19:56:30 +0100
1 files changed, 9 insertions(+), 1 deletions(-)
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