2015-12-01 00:06:33 +00:00
|
|
|
#!/bin/bash
|
2015-06-03 21:39:41 +00:00
|
|
|
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
|
|
|
2015-06-06 22:47:56 +00:00
|
|
|
# List of the config files to install
|
2015-12-12 21:47:09 +00:00
|
|
|
FILES="vimrc zshrc gitconfig vim gitignore_global"
|
2015-06-03 21:39:41 +00:00
|
|
|
|
2015-06-06 22:47:56 +00:00
|
|
|
# Create symbolic links in the user's home dir
|
2015-12-06 00:04:37 +00:00
|
|
|
OLDPATH=`pwd`
|
|
|
|
cd $HOME
|
2015-06-03 21:45:41 +00:00
|
|
|
for file in $FILES
|
|
|
|
do
|
2015-12-12 21:46:20 +00:00
|
|
|
if [ ! -f .${file} ]
|
|
|
|
then
|
|
|
|
ln -s ${SCRIPTPATH}/${file} .${file}
|
|
|
|
fi
|
2015-06-03 21:39:41 +00:00
|
|
|
done
|
2015-12-06 00:04:37 +00:00
|
|
|
cd $OLDPATH
|