add new install.sh and update README

This commit is contained in:
Nick Nisi
2014-11-09 16:49:40 -06:00
parent 3b1a65ef09
commit 2d8347e6e2
3 changed files with 40 additions and 60 deletions

35
install.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
echo "installing dotfiles"
echo "initializing submodule(s)"
git submodule update --init --recursive
echo "creating symlinks"
linkables=$( ls -1 -d **/*.symlink )
for file in $linkables ; do
target="$HOME/.$( basename $file ".symlink" )"
echo "creating symlink for $file"
ln -s $file $target
done
if [ "$(uname)" == "Darwin" ]; then
echo "running on OSX"
echo "installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "brewing all the things"
source scripts/brew.sh
echo "updating OSX settings"
source scripts/osx.sh
echo "installing node (from nvm)"
nvm install stable
nvm alias default stable
fi
echo "configuring zsh as default shell"
chsh -s $(which zsh)