2 ############################
4 # Create symlinks from the home directory to dotfiles in ~/etc/dotfiles
5 ############################
10 olddir=~/etc/dotfiles.bak
11 files="vimrc bashrc bash_profile Xresources gitconfig gitignore xinitrc"
16 # create dotfiles_old in homedir
19 # change to the dotfiles directory
22 # move any existing dotfiles in homedir to dotfiles_old directory,
23 #then create symlinks from the homedir to any files in the
24 #~/dotfiles directory specified in $files
25 for file in $files; do
27 ln -s $dir/$file ~/.$file
30 # For every directory execute the install file.
31 for directory in $directories; do
32 mkdir -p ~/.$directory
33 source ./$directory/makelinks.sh