Skip to content

Commit

Permalink
Add brew_tap function
Browse files Browse the repository at this point in the history
This prevents the ugly "Warning" messages
which Homebrew outputs by default
when tapping something that is already tapped.

Sourcing this script in my personal set up,
I use it as thus:

brew_tap 'homebrew/dupes'
brew_tap 'homebrew/versions'
brew_tap 'homebrew/boneyard'
brew_tap 'homebrew/science'
brew_tap 'homebrew/php'
brew_tap 'caskroom/cask'
brew_tap 'caskroom/versions'
brew_tap 'caskroom/fonts'
brew_tap 'thoughtbot/formulae'
  • Loading branch information
AlJohri authored and Dan Croak committed Jan 16, 2015
1 parent 4d07ad0 commit 971bfae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mac
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ brew_is_upgradable() {
! brew outdated --quiet "$name" >/dev/null
}

brew_tap() {
brew tap "$1" 2> /dev/null
}

brew_expand_alias() {
brew info "$1" 2>/dev/null | head -1 | awk '{gsub(/:/, ""); print $1}'
}
Expand Down Expand Up @@ -176,7 +180,7 @@ fancy_echo "Configuring Bundler ..."
brew_install_or_upgrade 'heroku-toolbelt'

if ! command -v rcup >/dev/null; then
brew tap thoughtbot/formulae
brew_tap 'thoughtbot/formulae'
brew_install_or_upgrade 'rcm'
fi

Expand Down

0 comments on commit 971bfae

Please sign in to comment.