]> arthur.barton.de Git - ax-zsh.git/commitdiff
install.sh: Create symlinks relative to ~/.axzsh
authorAlexander Barton <alex@barton.de>
Fri, 24 Jul 2015 22:59:20 +0000 (00:59 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 24 Jul 2015 22:59:20 +0000 (00:59 +0200)
install.sh

index 8cb92e3bc25aa32c3b0c9cc6ea8f958483fdfcac..9c8555db65b10afc80bc40688b01a1e2240ae6d0 100755 (executable)
@@ -12,10 +12,10 @@ safe_rm() {
        rm -f "$1" || exit 1
 }
 
+safe_rm ~/.axzsh || exit 1
+ln -sv "$PWD" ~/.axzsh || exit 1
+
 for f in ~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc; do
        safe_rm "$f" || exit 1
-       ln -sv "$PWD/ax.zsh" "$f" || exit 1
+       ln -sv ~/.axzsh/ax.zsh "$f" || exit 1
 done
-
-safe_rm ~/.axzsh || exit 1
-ln -sv "$PWD" ~/.axzsh || exit 1