Merge pull request #15272 from dawidd6/fish-linux-cask

completions/fish: fix cask references for Linux
This commit is contained in:
Mike McQuaid 2023-04-24 16:37:54 +01:00 committed by GitHub
commit 96066f4507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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