prezto/modules/homebrew/init.zsh
Tevin Zhang 54506f1705 omit warning of brew upgrade
In newly version of homebrew when you execute 'brew upgrade' you will
get the following:

Warning: brew upgrade with no arguments will change behaviour soon!
It currently upgrades all formula but this will soon change to require
'--all'.
Please update any workflows, documentation and scripts!
2015-05-05 20:39:09 +08:00

36 lines
700 B
Bash

#
# Defines Homebrew aliases.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Return if requirements are not found.
if [[ "$OSTYPE" != darwin* ]]; then
return 1
fi
#
# Aliases
#
# Homebrew
alias brewc='brew cleanup'
alias brewC='brew cleanup --force'
alias brewi='brew install'
alias brewl='brew list'
alias brews='brew search'
brewu() {
brew update
[[ -z $1 ]] && brew upgrade --all || brew upgrade "$@"
}
alias brewx='brew remove'
# Homebrew Cask
alias cask='brew cask'
alias caskc='brew cask cleanup --outdated'
alias caskC='brew cask cleanup'
alias caski='brew cask install'
alias caskl='brew cask list'
alias casks='brew cask search'
alias caskx='brew cask uninstall'