-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-osx.sh
executable file
·71 lines (61 loc) · 1.67 KB
/
bootstrap-osx.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
cd ~
# Check if Homebrew is installed
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew : https://github.com/mxcl/homebrew/wiki/installation
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update
fi
#Get basic stuff
brew install git hub cloc gnu-tar htop tmux wget zsh-completions the_silver_searcher
# Get the GNU versions of this stuff (cause OS X versions are terrible)
brew install coreutils findutils grep --with-default-names
#Get the latest Python 2 Version
brew install python
brew linkapps python
pip install --upgrade pip
#Setup Oh My ZSH
if [ ! -d ~/.oh-my-zsh ] ; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
pip install powerline-status
mkdir ~/Fonts && cd ~/Fonts
git clone git@github.com:powerline/fonts.git powerline
cd powerline && ./install.sh
else
echo "Oh My ZSH Already installed..."
fi
#Setup symlinks for user customization
scriptDir=~/projects/codecounselor/scripts
if [ ! -d $scriptDir ] ; then
echo "Cloning code counselor scripts"
mkdir -p ~/projects/codecounselor
cd ~/projects/codecounselor/
git clone git@github.com:codecounselor/scripts.git
else
cd $scriptDir; git pull
fi
cd ~
links=( ".bash_gitrc" ".zshrc" ".vim" ".vimrc" ".naterc" "slate/.slate")
for link in "${links[@]}"
do
echo "Linking $link"
ln -F -s $scriptDir/$link .
done
CASKS=(
# menumeters
# iterm2
# slate
# google-chrome
# atom
# webstorm
# slack
# java
# mysqlworkbench
)
# brew cask install ${CASKS[@]}
# Useful Utilities
npm install -g j-unquote j-quote
# JS Development Things
npm install -g standard snazzy