forked from sagevann/osxprovision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binaries.sh
executable file
·84 lines (69 loc) · 1.78 KB
/
binaries.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
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# Binary installer
#
# Check for Homebrew
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew
brew update && brew upgrade brew-cask
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
brew tap homebrew/science
brew tap phinze/cask
# Install other useful binaries
binaries=(
graphicsmagick
boot2docker
webkit2png
phantomjs
rename
zopfli
ffmpeg
python
mongo
sshfs
trash
node
tree
hub
ack
git
hub
fig
wget
postgresql
ant
eigen
opencv
)
# Install the binaries
brew install ${binaries[@]}
# TODO: install jdk 7, 8, and switch command to change between 6,7,8
#brew cask install --appdir="~/Applications" java
# Add osx specific command line tools
if test ! $(which subl); then
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
fi
# Install spot
if test ! $(which spot); then
curl -L https://raw.github.com/guille/spot/master/spot.sh -o /usr/local/bin/spot && chmod +x /usr/local/bin/spot
fi
# Remove outdated versions from the cellar
brew cleanup
# npm installs
# TODO: break out into an "node_npm.sh" script!
npm install -g yo gitjk cordova phonegap less bower cordova-js cordova-lib
npm install -g commander debug fs-extra grunt-cli gulp http-console
npm install -g http-server jshint mkdirp request slush
npm install -g slush-angular slush-backbone slush-bootstrap
npm install -g slush-foundation slush-static-web
exit 0