#!/bin/bash

# This script creates symlinks from the home dir to any desired dotfiles in ~/dotfiles. Fork of @michaeljsmalley's version

dir=~/dotfiles
olddir=~/dotfiles_old
files="bashrc bash_aliases bash_profile tmux.conf vimrc"

echo -n "Create $olddir for backup of existing dotfiles in ~ ..."
mkdir -p $olddir
echo "done"

echo -n "Changing to $dir directory ..."
cd $dir
echo "done"

for file in $files; do
  echo "Moving existing dotfiles from ~ to $olddir"
  mv ~/.$file ${olddir}/
  echo "Creating symlink to $file in home dir."
  ln -s ${dir}/${file} ~/.$file
done




Add script to create symlinks from home directory to dotfiles
Add script to create symlinks from home directory to dotfiles
