Skip to content

Commit

Permalink
Add homebrew-cask aliases to homebrew module
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Ionescu <[email protected]>
  • Loading branch information
tough-griff authored and sorin-ionescu committed Oct 10, 2014
1 parent 417b9d4 commit 34a50c2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/homebrew/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Defines Homebrew aliases.
Aliases
-------

### Homebrew

- `brewc` cleans outdated brews and their cached archives.
- `brewC` cleans outdated brews, including keg-only, and their cached archives.
- `brewi` installs a formula.
Expand All @@ -15,11 +17,22 @@ Aliases
- `brewu` upgrades Homebrew.
- `brewx` uninstalls a formula.

### Homebrew Cask

- `cask` is aliased to `brew cask`.
- `caskc` cleans up old cached downloads.
- `caskC` cleans up all cached downloads.
- `caski` installs a cask.
- `caskl` lists installed casks.
- `casks` searches for a cask.
- `caskx` uninstalls a cask.

Authors
-------

*The authors of this module should be contacted via the [issue tracker][1].*

- [Sorin Ionescu](https://github.com/sorin-ionescu)
- [Griffin Yourick](https://github.com/tough-griff)

[1]: https://github.com/sorin-ionescu/prezto/issues
10 changes: 10 additions & 0 deletions modules/homebrew/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fi
# Aliases
#

# Homebrew
alias brewc='brew cleanup'
alias brewC='brew cleanup --force'
alias brewi='brew install'
Expand All @@ -22,3 +23,12 @@ alias brews='brew search'
alias brewu='brew upgrade'
alias brewU='brew update && 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'

0 comments on commit 34a50c2

Please sign in to comment.