From a6704b815c28b88e2875725afc486502e1686782 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 19 Apr 2023 11:35:34 +0200 Subject: [PATCH] completions/fish: fix cask references for Linux --- Library/Homebrew/completions/fish.erb | 4 ++-- completions/fish/brew.fish | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/completions/fish.erb b/Library/Homebrew/completions/fish.erb index 02769bee55..2d75db2d59 100644 --- a/Library/Homebrew/completions/fish.erb +++ b/Library/Homebrew/completions/fish.erb @@ -130,11 +130,11 @@ function __fish_brew_suggest_casks_all -d "Lists locally available casks" end function __fish_brew_suggest_casks_installed -d "Lists installed casks" - command ls -1 (brew --caskroom) + command ls -1 (brew --caskroom) 2>/dev/null end function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade" - brew outdated --cask --verbose \ + brew outdated --cask --verbose 2>/dev/null \ # replace first space with tab to make the following a description in the completions list: | string replace -r '\s' '\t' end diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 22f10bacd3..d2ee34d0d2 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -117,11 +117,11 @@ function __fish_brew_suggest_casks_all -d "Lists locally available casks" end function __fish_brew_suggest_casks_installed -d "Lists installed casks" - command ls -1 (brew --caskroom) + command ls -1 (brew --caskroom) 2>/dev/null end function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade" - brew outdated --cask --verbose \ + brew outdated --cask --verbose 2>/dev/null \ # replace first space with tab to make the following a description in the completions list: | string replace -r '\s' '\t' end