f1a800067f46fa990a11ea0055459560ce63a7ae

Author
Carlo Sala <carlosalag@protonmail.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

fix(brew)!: rename `buf` alias to `bfu`

BREAKING CHANGE: rename `buf` alias to `bfu` to avoid conflicts with
protobuf tool

Diff

 1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
 2index 4a42b3d74ee9959065007aea0a9a2af02858d155..d0c15023774d3bb1bf947f36abdc8884f83f00cf 100644
 3--- a/plugins/brew/README.md
 4+++ b/plugins/brew/README.md
 5@@ -17,20 +17,20 @@ defined for convenience.
 6 
 7 ## Aliases
 8 
 9-| Alias    | Command                               | Description                                                         |
10-| -------- | ------------------------------------- | ------------------------------------------------------------------- |
11-| `bcubc`  | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup.                            |
12-| `bcubo`  | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks.                     |
13-| `bcubc`  | `brew upgrade --cask && brew cleanup` | Update outdated casks, then run cleanup.                            |
14-| `brewp`  | `brew pin`                            | Pin a specified formula so that it's not upgraded.                  |
15-| `brews`  | `brew list -1`                        | List installed formulae or the installed files for a given formula. |
16-| `brewsp` | `brew list --pinned`                  | List pinned formulae, or show the version of a given formula.       |
17-| `bubc`   | `brew upgrade && brew cleanup`        | Upgrade outdated formulae and casks, then run cleanup.              |
18-| `bugbc`  | `brew upgrade --greedy && brew cleanup`  | Upgrade outdated formulae and casks (greedy), then run cleanup.         |
19-| `bubo`   | `brew update && brew outdated`        | Update Homebrew data, then list outdated formulae and casks.        |
20-| `bubu`   | `bubo && bubc`                        | Do the last two operations above.                                   |
21-| `buf`    | `brew upgrade --formula`              | Upgrade only formulas (not casks).                                  |
22-| `buz`    | `brew uninstall --zap`                | Remove all files associated with a cask.                            |
23+| Alias    | Command                                 | Description                                                         |
24+| -------- | --------------------------------------- | ------------------------------------------------------------------- |
25+| `bcubc`  | `brew upgrade --cask && brew cleanup`   | Update outdated casks, then run cleanup.                            |
26+| `bcubo`  | `brew update && brew outdated --cask`   | Update Homebrew data, then list outdated casks.                     |
27+| `bcubc`  | `brew upgrade --cask && brew cleanup`   | Update outdated casks, then run cleanup.                            |
28+| `brewp`  | `brew pin`                              | Pin a specified formula so that it's not upgraded.                  |
29+| `brews`  | `brew list -1`                          | List installed formulae or the installed files for a given formula. |
30+| `brewsp` | `brew list --pinned`                    | List pinned formulae, or show the version of a given formula.       |
31+| `bubc`   | `brew upgrade && brew cleanup`          | Upgrade outdated formulae and casks, then run cleanup.              |
32+| `bugbc`  | `brew upgrade --greedy && brew cleanup` | Upgrade outdated formulae and casks (greedy), then run cleanup.     |
33+| `bubo`   | `brew update && brew outdated`          | Update Homebrew data, then list outdated formulae and casks.        |
34+| `bubu`   | `bubo && bubc`                          | Do the last two operations above.                                   |
35+| `bfu`    | `brew upgrade --formula`                | Upgrade only formulas (not casks).                                  |
36+| `buz`    | `brew uninstall --zap`                  | Remove all files associated with a cask.                            |
37 
38 ## Completion
39 
40diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
41index 8275454a4b30eeb410587f46a8511945cad3a0fe..f6abe08751ac24a3305d8f0871e2d5fb7499c3de 100644
42--- a/plugins/brew/brew.plugin.zsh
43+++ b/plugins/brew/brew.plugin.zsh
44@@ -35,7 +35,7 @@ alias bugbc='brew upgrade --greedy && brew cleanup'
45 alias bubo='brew update && brew outdated'
46 alias bubu='bubo && bubc'
47 alias bubug='bubo && bugbc'
48-alias buf='brew upgrade --formula'
49+alias bfu='brew upgrade --formula'
50 alias buz='brew uninstall --zap'
51 
52 function brews() {