5ddb5890118f577ac67bd9101ef66bcdd520c8d9
- Author
- Qin Li <30631553+liblaf@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(brew): suppress error message of brew cask on Linux (#11302)
Diff
1diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
2index 41420b5b7047446eb4a360fcd03061ac662b7e49..ea89008232b285b3b28fb69ab0557b99f45ecfb0 100644
3--- a/plugins/brew/brew.plugin.zsh
4+++ b/plugins/brew/brew.plugin.zsh
5@@ -36,7 +36,7 @@ alias buf='brew upgrade --formula'
6
7 function brews() {
8 local formulae="$(brew leaves | xargs brew deps --installed --for-each)"
9- local casks="$(brew list --cask)"
10+ local casks="$(brew list --cask 2>/dev/null)"
11
12 local blue="$(tput setaf 4)"
13 local bold="$(tput bold)"