0a9a80a524ca277ed6573e233204806f800a9292
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
fix(brew): rename `bc` alias to `bcn` to avoid conflict with command (#12582)
Fixes #12582
Diff
1diff --git a/plugins/brew/README.md b/plugins/brew/README.md
2index fb07ebe109b52d1a52b64112ccf680bc8905a178..c952bfdb9cd3435dec1a5d5d66c174fac235ab64 100644
3--- a/plugins/brew/README.md
4+++ b/plugins/brew/README.md
5@@ -22,10 +22,10 @@ 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-| `bc` | `brew cleanup` | Run cleanup. |
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+| `bcn` | `brew cleanup` | Run cleanup. |
14 | `bco` | `brew outdated --cask` | Report all outdated casks. |
15 | `bcrin` | `brew reinstall --cask` | Reinstall the given cask. |
16 | `bcubc` | `brew upgrade --cask && brew cleanup` | Upgrade outdated casks, then run cleanup. |
17diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
18index 52ef3fd57c1347c0ada776282010b12d9b4dba10..9a9b58d852df218fd3fad8178bdf94e5e3f12f81 100644
19--- a/plugins/brew/brew.plugin.zsh
20+++ b/plugins/brew/brew.plugin.zsh
21@@ -35,10 +35,10 @@ if [[ -d "$HOMEBREW_PREFIX/share/zsh/site-functions" ]]; then
22 fi
23
24 alias ba='brew autoremove'
25-alias bc='brew cleanup'
26 alias bci='brew info --cask'
27 alias bcin='brew install --cask'
28 alias bcl='brew list --cask'
29+alias bcn='brew cleanup'
30 alias bco='brew outdated --cask'
31 alias bcrin='brew reinstall --cask'
32 alias bcubc='brew upgrade --cask && brew cleanup'