#! /bin/bash
############################
#.make.sh
# This script creates symlinks from the home directory to any desired dotfiles in ~/Dotfiles
############################

########## Variables

dir=~/Dotfiles                       # dotfiles directory
olddir=~/Dotfiles_old                # old dotfiles backup directory
files="bash_profile vimrc bashrc"    # list of files/folders to symlink in homedir

##########

# create dotfiles_old in homedir
echo "Creating $olddir for backup of any existing Dotfiles in ~"
mkdir -p $olddir
echo "...done"

# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
echo "...done"

# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks 
for file in $files; do
    echo "Moving .$file from ~ to $olddir"
    mv ~/.$file $olddir/$file
    echo "Creating symlink to $file in home directory."
    ln -s $dir/$file ~/.$file
done

#! /bin/bash
############################
#.make.sh
# This script creates symlinks from the home directory to any desired dotfiles in ~/Dotfiles
############################

########## Variables

dir=~/Dotfiles                       # dotfiles directory
olddir=~/Dotfiles_old                # old dotfiles backup directory
files="bash_profile vimrc bashrc"    # list of files/folders to symlink in homedir

##########

# create dotfiles_old in homedir
echo "Creating $olddir for backup of any existing Dotfiles in ~"
mkdir -p $olddir
sleep 2
echo "...done"
echo

# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
sleep 2
echo "...done"
echo

# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
for file in $files; do
    echo "Moving .$file from ~ to $olddir"
    mv ~/.$file $olddir/$file
    sleep 2
    echo "Creating symlink to $file in home directory."
    ln -s $dir/$file ~/.$file
    sleep 2
    echo "Finished $file"
    sleep 2
    echo
done

echo "...done"

Make symlink script more understandable
Make symlink script more understandable

Pauses between command execution gives the user a chance to see what's
going on.

And additional echo or two give more information, and blank lines are
always nice.
