You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.2 KiB
80 lines
2.2 KiB
9 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Installs Homebrew and some of the common dependencies needed/desired for software development
|
||
|
|
||
|
# Ask for the administrator password upfront
|
||
|
sudo -v
|
||
|
|
||
|
# Check for Homebrew and install it if missing
|
||
|
if test ! $(which brew)
|
||
|
then
|
||
|
echo "Installing Homebrew..."
|
||
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||
|
fi
|
||
|
|
||
|
brew tap homebrew/versions
|
||
|
brew tap homebrew/dupes
|
||
|
brew tap Goles/battery
|
||
|
|
||
|
# Make sure we’re using the latest Homebrew
|
||
|
brew update
|
||
|
|
||
|
# Upgrade any already-installed formulae
|
||
|
brew upgrade --all
|
||
|
|
||
|
# Install the Homebrew packages I use on a day-to-day basis.
|
||
|
#
|
||
|
# - Languages: rvm (Ruby), nvm (Node.js), go
|
||
|
# - Databases: Progres, MySQL, Redis, Mongo, Elasticsearch
|
||
|
# - Servers: Apache, Nginx
|
||
|
# - Fuck (https://github.com/nvbn/thefuck): Correct your previous command. Note
|
||
|
# that this needs to be added to zsh or bash. See the project README.
|
||
|
# - Foreman & Forego:
|
||
|
# - Tree (http://mama.indstate.edu/users/ice/tree/): A directory listing utility
|
||
|
# that produces a depth indented listing of files.
|
||
|
# - Tor ():
|
||
|
# - git-extras (https://vimeo.com/45506445): Adds a shit ton of useful commands # to git.
|
||
|
# - autoenv (https://github.com/kennethreitz/autoenv): this utility makes it
|
||
|
# easy to apply environment variables to projects. I mostly use it for Go and
|
||
|
# Node.js projects. For Ruby projects, I just use Foreman or Forego.
|
||
|
# - autojump (https://github.com/joelthelion/autojump): a faster way to navigate
|
||
|
# your filesystem.
|
||
|
# Note that I install nvm (https://github.com/creationix/nvm) instead
|
||
|
# of installing Node directly. This gives me more explicit control over
|
||
|
# which version I'm using.
|
||
|
|
||
|
apps=(
|
||
|
rvm
|
||
|
nvm
|
||
|
mongodb
|
||
|
bash-completion2
|
||
|
coreutils
|
||
|
moreutils
|
||
|
findutils
|
||
|
ffmpeg
|
||
|
fortune
|
||
|
ponysay
|
||
|
git
|
||
|
git-extras
|
||
|
hub
|
||
|
gnu-sed --with-default-names
|
||
|
grep --with-default-names
|
||
|
homebrew/completions/brew-cask-completion
|
||
|
homebrew/dupes/grep
|
||
|
homebrew/dupes/openssh
|
||
|
mtr
|
||
|
autojump
|
||
|
imagemagick --with-webp
|
||
|
python
|
||
|
the_silver_searcher
|
||
|
tree
|
||
|
ffmpeg --with-libvpx
|
||
|
wget
|
||
|
wifi-password
|
||
|
)
|
||
|
|
||
|
brew install "${apps[@]}"
|
||
|
|
||
|
# Remove outdated versions from the cellar
|
||
|
brew cleanup
|