-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·46 lines (36 loc) · 1.16 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#must have node!
node=`which node 2>&1`
if [ $? -ne 0 ]; then
echo "Please install NodeJS."
echo "http://nodejs.org/"
exit 1
fi
#Setup symbolic links
echo 'Setting up symbolic links'
ln -s ~/environment/bin ~/bin
ln -s ~/environment/nvim ~/.nvim
ln -s ~/environment/hammerspoon ~/.hammerspoon
ln -s ~/environment/git/gitconfig ~/.gitconfig
ln -s ~/environment/tmux/tmux.conf ~/.tmux.conf
ln -s ~/environment/tmux/ ~/.tmux
#install homebrew
echo 'Installing home brew'
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
#Setup Vundler
echo 'Setting up VIM environment'
(cd ~/environment && git submodule init && git submodule update)
#Tell VIM to install all the things and exit
echo 'Installing VIM bundles'
nvim -c PlugInstall -c q -c q
echo 'Setting up OSX preferences'
(cd ~/environment/ && ./osxSetup.sh)
#Setup oh-my-zsh
echo 'Installing oh-my-zsh'
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
#change shell
echo 'Switching default shell to zsh'
chsh -s /bin/zsh
echo 'Finished Please Reload Shell'
echo 'Dont forget to add ~/node_modules/.bin to your path!'
echo 'Dont forget to add ~/bin to your path!'