diff --git a/install.sh b/install.sh index 36f1cb4..b54acd4 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,10 @@ SCRIPTPATH=$(dirname "$SCRIPT") FILES="vimrc zshrc gitconfig vim" # Create symbolic links in the user's home dir +OLDPATH=`pwd` +cd $HOME for file in $FILES do - ln -s -t $HOME .$file + ln -s ${SCRIPTPATH}/${file} .${file} done +cd $OLDPATH