diff options
author | Qin Li <30631553+liblaf@users.noreply.github.com> | 2022-11-04 01:32:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 18:32:01 +0100 |
commit | 5ddb5890118f577ac67bd9101ef66bcdd520c8d9 (patch) | |
tree | a08fde96c12a64c48e67639f9ab81376b236415e /plugins/brew | |
parent | 239e2f9fcd3a3d469a2d6edfc33b57bf5c39c6a2 (diff) | |
download | zsh-5ddb5890118f577ac67bd9101ef66bcdd520c8d9.tar.gz zsh-5ddb5890118f577ac67bd9101ef66bcdd520c8d9.tar.bz2 zsh-5ddb5890118f577ac67bd9101ef66bcdd520c8d9.zip |
fix(brew): suppress error message of brew cask on Linux (#11302)
Diffstat (limited to 'plugins/brew')
-rw-r--r-- | plugins/brew/brew.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 41420b5b7..ea8900823 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -36,7 +36,7 @@ alias buf='brew upgrade --formula' function brews() { local formulae="$(brew leaves | xargs brew deps --installed --for-each)" - local casks="$(brew list --cask)" + local casks="$(brew list --cask 2>/dev/null)" local blue="$(tput setaf 4)" local bold="$(tput bold)" |