-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·147 lines (116 loc) · 3.72 KB
/
setup.sh
File metadata and controls
executable file
·147 lines (116 loc) · 3.72 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/bin/bash
# Simple setup.sh
# for headless setup.
# Install Homebrew
# Install Command Line Tools for Xcode
# xcode-select --install
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
# No need to install cask http://bit.ly/1SviowC
# Install cask
# brew tap phinze/cask
# brew install brew-cask
function installcask() {
brew cask install "${@}" 2> /dev/null
}
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Do the same for cask
# brew upgrade brew-cask
# Prevent from issue https://github.com/caskroom/homebrew-cask/issues/7946
# Remove outdated versions from the cellar
brew cleanup && brew cask cleanup
# Install GNU core utilities (those that come with OS X are outdated)
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install wget with IRI support
brew install wget --enable-iri
brew install git
brew install ack
brew install tree
brew install lynx
brew install node
brew install pigz
brew install rename
brew install tree
brew install zopfli
brew install p7zip
brew install osxfuse
brew install ntfs-3g
# Install dev tools
installcask java
brew install subversion
brew install scala --with-docs --with-src
brew install apache-spark
npm install -g tldr
# hacks for scala
# http://scalacookbook.blogspot.fr/2012/09/scala-for-intellij.html
scalaversion="$(brew which scala | sed 's/[^0-9.]*\([0-9.]*\).*/\1/')"
if [ ! -L /usr/local/Cellar/scala/$scalaversion/src ]; then
ln -s /usr/local/Cellar/scala/$scalaversion/libexec/src /usr/local/Cellar/scala/$scalaversion/src
fi
if [ ! -L /usr/local/Cellar/scala/$scalaversion/lib ]; then
ln -s /usr/local/Cellar/scala/$scalaversion/libexec/lib /usr/local/Cellar/scala/$scalaversion/lib
fi
if [ ! -d /usr/local/Cellar/scala/$scalaversion/doc/scala-devel-docs ] ; then
mkdir -p /usr/local/Cellar/scala/$scalaversion/doc/scala-devel-docs
ln -s /usr/local/Cellar/scala/$scalaversion/share/doc/scala /usr/local/Cellar/scala/$scalaversion/doc/scala-devel-docs/api
fi
brew install sbt
brew install maven
#install gvm
curl -s get.gvmtool.net | bash
[[ -s ~/.gvm/bin/gvm-init.sh ]] && source ~/.gvm/bin/gvm-init.sh
gvm install grails 2.3.5
gvm install groovy
installcask intellij-idea-ultimate
installcask pgadmin3
installcask dropbox
installcask google-chrome
# installcask google-chrome-canary
installcask imagealpha
installcask imageoptim
installcask iterm2
# installcask macvim
# installcask miro-video-converter
installcask sublime-text
installcask the-unarchiver
# installcask tor-browser
installcask transmission
installcask ukelele
installcask vlc
installcask google-hangouts
brew install elasticsearch
mv /usr/local/bin/plugin /usr/local/bin/elasticsearch-plugin
elasticsearch-plugin --install mobz/elasticsearch-head
brew install postgresql
installcask virtualbox virtualbox-extension-pack
installcask vagrant
installcask vagrant-manager vagrant-bar
brew install vagrant-completion
brew install ansible
brew install springboot
brew-cask install spotify
brew-cask install nvalt
brew install grsync
brew install nginx
installcask dockertoolbox
brew install wildfly-as
# Remove outdated versions from the cellar
brew cleanup
# git pull and install dotfiles as well
cd $HOME
if [ ! -d ~/Projects/ ]; then
mkdir ~/Projects
fi
if [ -d ~/Projects/dotfiles/ ]; then
mv ~/Projects/dotfiles ~/Projects/dotfiles.old
fi
git clone https://ze_dach@bitbucket.org/ze_dach/dotfiles.git ~/Projects/dotfiles
cd Projects/dotfiles && source bootstrap.sh