...
 
#!/bin/bash
#-*- Author : Antoine Bernard <abernard@crans.org> -*-
#Deployment script for configuration.
FILES=".zsh .zshrc .gitconfig .vimrc"
ERRN=0
for f in $FILES
do
echo "Creating symbolic link $PWD/$f in $f"
ln -s "$f" "~/$f"
ln -s "$PWD/$f" "$HOME/$f"
if [ $? -ne 0 ]
then
((ERRN++))
fi
done
echo "Deployment finished !"
if [ $ERRN -ne 0 ]
then
echo "There was $ERRN error(s) !"
fi