From 5ddb5890118f577ac67bd9101ef66bcdd520c8d9 Mon Sep 17 00:00:00 2001 From: Qin Li <30631553+liblaf@users.noreply.github.com> Date: Fri, 4 Nov 2022 01:32:01 +0800 Subject: [PATCH] fix(brew): suppress error message of brew cask on Linux (#11302) --- plugins/brew/brew.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"