From 34a50c2550a349f83b7e3329c186888e9619b314 Mon Sep 17 00:00:00 2001 From: Griffin Yourick Date: Fri, 2 May 2014 15:20:23 -0400 Subject: [PATCH] Add homebrew-cask aliases to homebrew module Signed-off-by: Sorin Ionescu --- modules/homebrew/README.md | 13 +++++++++++++ modules/homebrew/init.zsh | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/modules/homebrew/README.md b/modules/homebrew/README.md index d646d31..69a4e87 100644 --- a/modules/homebrew/README.md +++ b/modules/homebrew/README.md @@ -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. @@ -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 diff --git a/modules/homebrew/init.zsh b/modules/homebrew/init.zsh index 3643d10..101b6b9 100644 --- a/modules/homebrew/init.zsh +++ b/modules/homebrew/init.zsh @@ -14,6 +14,7 @@ fi # Aliases # +# Homebrew alias brewc='brew cleanup' alias brewC='brew cleanup --force' alias brewi='brew install' @@ -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'