all repos — nixfiles @ 75df2061a259258d85de7663d9f5e1dbc71a0ca8

System and user configuration, managed by nix and home-manager

Fix zsh dotfile installation

Alan Pearce
commit

75df2061a259258d85de7663d9f5e1dbc71a0ca8

parent

1b2ac613e3ee291ddf37b16f01d82343906e5d39

1 file changed, 9 insertions(+), 1 deletion(-)

jump to
M hooks/post-up/zshhooks/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