Skip to content

Commit

Permalink
completions/fish: fix cask references for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Apr 19, 2023
1 parent bdc55b4 commit a6704b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/completions/fish.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions completions/fish/brew.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6704b8

Please sign in to comment.