From 5cc6de67bd65d78cdf021345a5fa5d697049b347 Mon Sep 17 00:00:00 2001 From: Aiden <38707987+aidenhx@users.noreply.github.com> Date: Thu, 30 Aug 2018 02:53:24 +0800 Subject: Update brew.plugin.zsh (#6947) add aliases for `brew pin` and `brew list --pinned` --- plugins/brew/brew.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/brew') diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 6fb7f3453..60b81f8ec 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -1,4 +1,6 @@ +alias brewp='brew pin' alias brews='brew list -1' +alias brewsp='brew list --pinned' alias bubo='brew update && brew outdated' alias bubc='brew upgrade && brew cleanup' alias bubu='bubo && bubc' -- cgit v1.2.3-70-g09d2 From ca8c7bad1419b65ba4d64fbb838cad1f592cb539 Mon Sep 17 00:00:00 2001 From: Brian Mitchell Date: Tue, 2 Oct 2018 01:10:03 -0500 Subject: brew: add README (#7183) --- plugins/brew/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/brew/README.md (limited to 'plugins/brew') diff --git a/plugins/brew/README.md b/plugins/brew/README.md new file mode 100644 index 000000000..d50dfc219 --- /dev/null +++ b/plugins/brew/README.md @@ -0,0 +1,19 @@ +# brew plugin + +The plugin adds several aliases for common [brew](https://brew.sh) commands. + +To use it, add `brew` to the plugins array of your zshrc file: +``` +plugins=(... brew) +``` + +## Aliases + +| Alias | Command | Description | +|--------|----------------------|---------------| +| brewp | `brew pin` | Pin a specified formulae, preventing them from being upgraded when issuing the brew upgrade command. | +| brews | `brew list -1` | List installed formulae, one entry per line, or the installed files for a given formulae. | +| brewsp | `brew list --pinned` | Show the versions of pinned formulae, or only the specified (pinned) formulae if formulae are given. | +| bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. | +| bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. | +| bubo | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. | -- cgit v1.2.3-70-g09d2 From 8bc9f23b7cb85108754ea402a02d7ebf0041175f Mon Sep 17 00:00:00 2001 From: Rubén Durán Balda Date: Tue, 2 Oct 2018 09:01:49 +0200 Subject: brew: fix typo in README (#7184) --- plugins/brew/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/brew') diff --git a/plugins/brew/README.md b/plugins/brew/README.md index d50dfc219..aab55ea39 100644 --- a/plugins/brew/README.md +++ b/plugins/brew/README.md @@ -16,4 +16,4 @@ plugins=(... brew) | brewsp | `brew list --pinned` | Show the versions of pinned formulae, or only the specified (pinned) formulae if formulae are given. | | bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. | | bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. | -| bubo | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. | +| bubu | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. | -- cgit v1.2.3-70-g09d2 From 7dab4f07e614ad2ebeabb4f3de0bbacb67317540 Mon Sep 17 00:00:00 2001 From: pahakalle Date: Sun, 20 Jan 2019 04:24:52 +0200 Subject: Added brew cask update --- plugins/brew/README.md | 2 ++ plugins/brew/brew.plugin.zsh | 2 ++ 2 files changed, 4 insertions(+) (limited to 'plugins/brew') diff --git a/plugins/brew/README.md b/plugins/brew/README.md index aab55ea39..c129a7652 100644 --- a/plugins/brew/README.md +++ b/plugins/brew/README.md @@ -17,3 +17,5 @@ plugins=(... brew) | bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. | | bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. | | bubu | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. | +| bcubo | `brew update && brew cask outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated casks. | +| bcubc | `brew cask reinstall $(brew cask outdated) && brew cleanup` | Updates outdated casks, then runs cleanup. | \ No newline at end of file diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 60b81f8ec..cfbaa3480 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -4,6 +4,8 @@ alias brewsp='brew list --pinned' alias bubo='brew update && brew outdated' alias bubc='brew upgrade && brew cleanup' alias bubu='bubo && bubc' +alias bcubo='brew update && brew cask outdated' +alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup' if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then print -P '%F{yellow}'Oh My Zsh brew plugin: -- cgit v1.2.3-70-g09d2