dotfiles-server/bin/install-dotfiles.sh

15 lines
361 B
Bash
Raw Normal View History

#!/bin/bash
# list of files/folders to symlink in homedir
FILES=".bash_aliases .bashrc .profile bin .vimrc"
# remove old version and symlink files
for FILE in $FILES; do
rm ~/$FILE
ln -s $FILE ~/$FILE
echo "$(tput setaf 64)$(tput sgr0) Symlink created to $(tput setaf 37)$FILE$(tput sgr0)"
done
# source what we just created
source ~/.profile