fix install script

This commit is contained in:
Matthias Kretschmann 2016-05-07 22:28:06 +02:00
parent 70d84d6ed1
commit 495d021dee
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
1 changed files with 4 additions and 4 deletions

View File

@ -6,15 +6,15 @@ FILES=".bash_aliases .bash_prompt .bashrc .profile bin .vimrc"
for FILE in $FILES; do
# remove old versions
if [ -d "~/$FILE" ] ; then
rm -r ~/$FILE
if [ -f "$HOME/$FILE" ] ; then
rm -r $HOME/$FILE
fi
# symlink files
ln -s $PWD/$FILE ~/$FILE
ln -s $PWD/$FILE $HOME/$FILE
echo "$(tput setaf 64)$(tput sgr0) Symlink created to $(tput setaf 37)$FILE$(tput sgr0)"
done
# source what we just created
source ~/.profile
source $HOME/.profile