fix install script
This commit is contained in:
parent
70d84d6ed1
commit
495d021dee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user