update install files

* correct bad paths in install.sh (thanks @pidgypost)
* update brew install script
* update nvm installation to work correctly

fixes #6 and fixes #7
This commit is contained in:
Nick Nisi
2015-08-10 22:37:24 -05:00
parent 131f43e354
commit 387594e491
5 changed files with 30 additions and 11 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/sh
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Installing homebrew packages..."
# cli tools
brew install ack
brew install tree
@@ -20,3 +27,5 @@ brew install highlight
brew install nvm
brew install z
brew install markdown
exit 0

View File

@@ -3,7 +3,7 @@
DOTFILES=$HOME/.dotfiles
echo "creating symlinks"
linkables=$( ls -1 -d **/*.symlink )
linkables=$( find -H "$DOTFILES" -maxdepth 3 -name '*.symlink' )
for file in $linkables ; do
target="$HOME/.$( basename $file ".symlink" )"
echo "creating symlink for $file"

7
install/nvm.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# reload nvm into this environment
source $(brew --prefix nvm)/nvm.sh
nvm install stable
nvm alias default stable