completions/fish: fix cask references for Linux

This commit is contained in:
Dawid Dziurla 2023-04-19 11:35:34 +02:00
parent bdc55b443c
commit a6704b815c
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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