completions/fish: fix cask references for Linux
This commit is contained in:
parent
bdc55b443c
commit
a6704b815c
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user