Skip to content

Commit

Permalink
Update install script to use git dotfiles in git subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstibbs committed Feb 25, 2016
1 parent 80dc414 commit 97f9c25
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

dir=~/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory
files="bash_profile bashrc inputrc gitignore_global gitconfig" # list of files/folders to symlink in homedir
files="bash_profile inputrc" # list of files/folders to symlink in homedir

gitdir=~/dotfiles/git
gitfiles="gitignore_global gitconfig"

echo $dir
echo $gitdir
##########

# create dotfiles_old in homedir
Expand All @@ -26,9 +31,16 @@ for file in $files; do
ln -s $dir/$file ~/.$file
done

for file in $gitfiles; do
echo "Moving any existing dotfiles from ~ to $olddir"
mv ~/.$file ~/dotfiles_old/
echo "Creating symlink to $file in home directory."
ln -s $gitdir/$file ~/.$file
done

########## Apply OSX Configuration Changes
source osxdefaults.sh
sudo chmod +x osxdefaults.sh
source scripts/osxdefaults.sh
sudo chmod +x scripts/osxdefaults.sh

########## Install Applications
# source applications.sh
Expand Down

0 comments on commit 97f9c25

Please sign in to comment.