Browse Source

fix(brew): suppress error message of brew cask on Linux (#11302)

Qin Li 1 year ago
parent
commit
5ddb589011
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/brew/brew.plugin.zsh

+ 1 - 1
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)"