rc/install.sh

20 lines
358 B
Bash
Raw Normal View History

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