forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix sorin-ionescu#411] Add Homebrew module
- Loading branch information
1 parent
90ae627
commit 055d068
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Homebrew | ||
======== | ||
|
||
Defines Homebrew aliases. | ||
|
||
Aliases | ||
------- | ||
|
||
- `brewc` cleans outdated brews and their cached archives. | ||
- `brewC` cleans outdated brews, including keg-only, and their cached archives. | ||
- `brewi` installs a formula. | ||
- `brewl` lists installed formulae. | ||
- `brews` searches for a formula. | ||
- `brewU` upgrades Homebrew and outdated brews. | ||
- `brewu` upgrades Homebrew. | ||
- `brewx` uninstalls a formula. | ||
|
||
Authors | ||
------- | ||
|
||
*The authors of this module should be contacted via the [issue tracker][1].* | ||
|
||
- [Sorin Ionescu](https://github.com/sorin-ionescu) | ||
|
||
[1]: https://github.com/sorin-ionescu/prezto/issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Defines Homebrew aliases. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
# Return if requirements are not found. | ||
if [[ "$OSTYPE" != darwin* ]]; then | ||
return 1 | ||
fi | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
alias brewc='brew cleanup' | ||
alias brewC='brew cleanup --force' | ||
alias brewi='brew install' | ||
alias brewl='brew list' | ||
alias brews='brew search' | ||
alias brewu='brew upgrade' | ||
alias brewU='brew update && brew upgrade' | ||
alias brewx='brew remove' | ||
|