#!/bin/sh
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

# Ask permissions upfront
sudo -v
# Check for Homebrew
if test ! $(which brew)
then
  echo "  Installing Homebrew for you."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
  echo -n "  Updating..."
  brew update
  echo "  Upgrading..."
  brew upgrade
fi

# Install homebrew packages
brew install grc coreutils the_silver_searcher homebrew/dupes/grep git imagemagick wget
brew install openssl node tree watch
brew install psgrep

# we need java for elasticsearch
brew install Caskroom/cask/java
brew install homebrew/versions/elasticsearch17

brew install postgresql

brew cask install google-chrome dropbox 1password karabiner iterm2 slack tunnelbear
brew cask install skype zoomus grammarly

exit 0

#!/bin/bash
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

# Ask permissions upfront
sudo -v
# Check for Homebrew
if test ! $(which brew)
then
  echo "  Installing Homebrew for you."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
  echo -n "  Updating..."
  brew update
  echo "  Upgrading..."
  brew upgrade
fi

# Install homebrew packages
brew install grc coreutils the_silver_searcher homebrew/dupes/grep git imagemagick wget
brew install openssl node tree watch
brew install psgrep

# we need java for elasticsearch
brew install Caskroom/cask/java
brew install homebrew/versions/elasticsearch17

brew install postgresql

brew cask install google-chrome dropbox 1password karabiner iterm2 slack tunnelbear
brew cask install skype zoomus grammarly

exit 0

Use bash instead of sh since it knows about echo -n parameter
Use bash instead of sh since it knows about echo -n parameter
