Added a new brew module to mimic the MacPorts port module.

This commit is contained in:
Lance Speelmon 2013-04-08 13:49:38 -07:00
parent 1622abb830
commit ba614a9ffb
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,23 @@
Brew
====
Defines Brew aliases and adds Brew directories to path variables.
Aliases
-------
- `brewc` cleans the files used to build brews.
- `brewi` installs a brew.
- `brews` searches for a brew.
- `brewu` upgrades a brew.
- `brewU` upgrades Brew, the brews collection, and outdated brews.
- `brewx` uninstalls a brew.
Authors
-------
*The authors of this module should be contacted via the [issue tracker][1].*
- [Lance Speelmon](https://github.com/lancespeelmon)
[1]: https://github.com/sorin-ionescu/prezto/issues

View file

@ -0,0 +1,22 @@
#
# Defines Brew aliases and adds Brew directories to path variables.
#
# Authors:
# Lance Speelmon <lance@speelmon.com>
#
# Return if requirements are not found.
if [[ "$OSTYPE" != darwin* ]]; then
return 1
fi
#
# Aliases
#
alias brewc='brew cleanup'
alias brewi='brew install'
alias brews='brew search'
alias brewU='brew update && brew upgrade'
alias brewu='brew upgrade'
alias brewx='brew remove'