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 zprofile zshenv zshrc xinitrc"
15 # create dotfiles_old in homedir
18 # change to the dotfiles directory
21 # move any existing dotfiles in homedir to dotfiles_old directory,
22 #then create symlinks from the homedir to any files in the
23 #~/dotfiles directory specified in $files
24 for file in $files; do
26 ln -s $dir/$file ~/.$file