#!/bin/sh SCRIPT=$(readlink -f "$0") SCRIPTPATH=$(dirname "$SCRIPT") # List of the config files to install FILES="vimrc zshrc gitconfig vim" # Create symbolic links in the user's home dir for file in $FILES do ln -s -T $SCRIPTPATH/$file .$file mv .$file $HOME done