SRC=$HOME/dotfiles [ -e $HOME/.bashrc ] && echo "I won't install ~/.bashrc because there is already a file like that; skipping setup for this file." [ -e $HOME/.vimrc ] && echo "I won't install ~/.vimrc because there is already a file like that; skipping setup for this file." [ -e $HOME/.bash_profile ] && echo "I won't install ~/.bash_profile because there is already a file like that; skipping setup for this file." [ -d $HOME/.config ] && echo "I won't install ~/.config because there is already a directory like that; skipping setup for this directory." [ -d $HOME/bin ] && echo "I won't install ~/bin because there is already a directory like that; skipping setup for this directory." ln -sf $SRC/.bashrc $HOME/.bashrc ln -sf $SRC/.vimrc $HOME/.vimrc ln -sf $SRC/.bash_profile $HOME/.bash_profile ln -sf $SRC/.config $HOME/.config ln -sf $SRC/bin $HOME/bin