diff options
| author | benj <benj@rse8.com> | 2018-03-20 02:09:27 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2018-03-20 02:09:27 -0700 |
| commit | 2e80a2fc1315d9da51555e4c7359f115a9dbf4c7 (patch) | |
| tree | 1b203bbe8f9fb922137966887a2b735e5c0dc67e /setup_brew.bash | |
| download | setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar.gz setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar.bz2 setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar.lz setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar.xz setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.tar.zst setup-2e80a2fc1315d9da51555e4c7359f115a9dbf4c7.zip | |
Basic setup for *nix and macOS
Diffstat (limited to '')
| -rw-r--r-- | setup_brew.bash | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/setup_brew.bash b/setup_brew.bash new file mode 100644 index 0000000..0e27da9 --- /dev/null +++ b/setup_brew.bash @@ -0,0 +1,111 @@ +#!/bin/bash -e + +### +# Is brew installed? It is?! Update! +### +which -s brew +if [[ $? != 0 ]] ; then + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +else + brew update +fi + +## Install the necessary stuff +brew install emacs +brew services start emacs # quickly please! + +brew install python +brew cask +brew cask install Caskroom/versions/java7 +brew cask install java + +### +# Install brew packages if they aren't installed +### +PACKAGES=" +ack +apache-spark +cgal +colordiff +coreutils +findutils +freetype +gdal +gdbm +ghc +gnupg +gnu-sed +gnu-tar +hadoop +haskell-stack +htop +httpie +imagemagick +jpeg +jq +kafka +leiningen +libtool +maven +mit-scheme +mono +mosh +mysql +netcat +node +openssl +p7zip +parallel +pass +phantomjs +postgis +postgresql +proj +pv +readline +redis +s3cmd +sbt +scala +sfcgal +sqlite +valgrind +tree +watchman +xvid +xz +" + +for arg in `echo $PACKAGES` +do + which -s $arg || brew install $arg +done + +### +# Casks +### +brew cask install ngrok +brew cask install virtualbox +brew cask install vagrant +brew cask install docker + +### +# Caveats and stuff +### +brew services start mysql +brew services restart postgresql +brew services start redis +brew services start kafka + +# get ghc +stack setup + +# symlink for emacs +ln -s ~/.bash_profile ~/.bashrc + +### +# Done +### +brew list + +exit 0 |
