#! /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 gitconfig gitignore_global"    # 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 1
echo "...done"
echo

# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
sleep 1
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 1
    echo "Creating symlink to $file in home directory."
    ln -s $dir/$file ~/.$file
    sleep 1
    echo "Finished $file"
    sleep 1
    echo
done

echo "...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 gitconfig gitignore_global"    # 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"

--- 
+++ 
@@ -15,14 +15,14 @@
 # create dotfiles_old in homedir
 echo "Creating $olddir for backup of any existing Dotfiles in ~"
 mkdir -p $olddir
-sleep 2
+sleep 1
 echo "...done"
 echo
 
 # change to the dotfiles directory
 echo "Changing to the $dir directory"
 cd $dir
-sleep 2
+sleep 1
 echo "...done"
 echo
 
@@ -30,12 +30,12 @@
 for file in $files; do
     echo "Moving .$file from ~ to $olddir"
     mv ~/.$file $olddir/$file
-    sleep 2
+    sleep 1
     echo "Creating symlink to $file in home directory."
     ln -s $dir/$file ~/.$file
-    sleep 2
+    sleep 1
     echo "Finished $file"
-    sleep 2
+    sleep 1
     echo
 done
 
Change pause from 2 to 1

I noticed in testing that 2 seemed like a long time to wait. 1 should be
better.

Closes #11.
