#!/bin/bash # list of files/folders to symlink in homedir FILES=".bash_aliases .bash_prompt .bashrc .profile bin .vimrc" for FILE in $FILES; do # remove old versions if [ -d "~/$FILE" ] ; then rm -r ~/$FILE fi # symlink files ln -s $PWD/$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