7b516064ec099ef3438024dc264972b4251d8c1a

Author
Conor Meagher <conor@hireconor.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(brew): add three more aliases (#13285)

Diff

 1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
 2index fccda65b9578f682ba258673e72135dbb0054a47..89c902ee4b12a3a3f84d2d236f1b828ff4732270 100644
 3--- a/plugins/brew/README.md
 4+++ b/plugins/brew/README.md
 5@@ -22,6 +22,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
 6 | Alias    | Command                                 | Description                                                           |
 7 | -------- | --------------------------------------- | --------------------------------------------------------------------- |
 8 | `ba`     | `brew autoremove`                       | Uninstall unnecessary formulae.                                       |
 9+| `bcfg`   | `brew config`                           | Show Homebrew and system configuration info useful for debugging.     |
10 | `bci`    | `brew info --cask`                      | Display information about the given cask.                             |
11 | `bcin`   | `brew install --cask`                   | Install the given cask.                                               |
12 | `bcl`    | `brew list --cask`                      | List installed casks.                                                 |
13@@ -31,6 +32,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
14 | `bcubc`  | `brew upgrade --cask && brew cleanup`   | Upgrade outdated casks, then run cleanup.                             |
15 | `bcubo`  | `brew update && brew outdated --cask`   | Update Homebrew data, then list outdated casks.                       |
16 | `bcup`   | `brew upgrade --cask`                   | Upgrade all outdated casks.                                           |
17+| `bdr`    | `brew doctor`                           | Check your system for potential problems.                             |
18 | `bfu`    | `brew upgrade --formula`                | Upgrade only formulae (not casks).                                    |
19 | `bi`     | `brew install`                          | Install a formula.                                                    |
20 | `bl`     | `brew list`                             | List all installed formulae.                                          |
21@@ -38,6 +40,7 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
22 | `brewp`  | `brew pin`                              | Pin a specified formula so that it's not upgraded.                    |
23 | `brews`  | `brew list -1`                          | List installed formulae or the installed files for a given formula.   |
24 | `brewsp` | `brew list --pinned`                    | List pinned formulae, or show the version of a given formula.         |
25+| `bs`     | `brew search`                           | Perform a substring search of cask tokens and formula names for text. |
26 | `bsl`    | `brew services list`                    | List all running services.                                            |
27 | `bsoff`  | `brew services stop`                    | Stop the service and unregister it from launching at login (or boot). |
28 | `bsoffa` | `bsoff --all`                           | Stop all started services.                                            |
29diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
30index 4dab6f4137b6d5fca9ea6d398e293b3c5ef3880a..432a360767f8fd3a8239ba4075515b866cffd5c6 100644
31--- a/plugins/brew/brew.plugin.zsh
32+++ b/plugins/brew/brew.plugin.zsh
33@@ -35,6 +35,7 @@ if [[ -d "$HOMEBREW_PREFIX/share/zsh/site-functions" ]]; then
34 fi
35 
36 alias ba='brew autoremove'
37+alias bcfg='brew config'
38 alias bci='brew info --cask'
39 alias bcin='brew install --cask'
40 alias bcl='brew list --cask'
41@@ -44,12 +45,14 @@ alias bcrin='brew reinstall --cask'
42 alias bcubc='brew upgrade --cask && brew cleanup'
43 alias bcubo='brew update && brew outdated --cask'
44 alias bcup='brew upgrade --cask'
45+alias bdr='brew doctor'
46 alias bfu='brew upgrade --formula'
47 alias bi='brew install'
48 alias bl='brew list'
49 alias bo='brew outdated'
50 alias brewp='brew pin'
51 alias brewsp='brew list --pinned'
52+alias bs='brew search'
53 alias bsl='brew services list'
54 alias bsoff='brew services stop'
55 alias bsoffa='bsoff --all'