Merge pull request #10459 from muneebmahmed/fix-fish-completion

Fix fish shell completion for upgrade
This commit is contained in:
Mike McQuaid 2021-01-29 08:48:54 +00:00 committed by GitHub
commit ebcd56cc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ function __fish_brew_suggest_formulae_installed
end end
function __fish_brew_suggest_formulae_outdated -d "List of outdated formulae with the information about potential upgrade" function __fish_brew_suggest_formulae_outdated -d "List of outdated formulae with the information about potential upgrade"
brew outdated --verbose \ brew outdated --formula --verbose \
# replace first space with tab to make the following a description in the completions list: # replace first space with tab to make the following a description in the completions list:
| string replace -r '\s' '\t' | string replace -r '\s' '\t'
end end
@ -145,7 +145,7 @@ function __fish_brew_suggest_casks_installed -d "Lists installed casks"
end end
function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade" function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade"
brew cask outdated --verbose \ brew outdated --cask --verbose \
# replace first space with tab to make the following a description in the completions list: # replace first space with tab to make the following a description in the completions list:
| string replace -r '\s' '\t' | string replace -r '\s' '\t'
end end

View File

@ -106,7 +106,7 @@ function __fish_brew_suggest_formulae_installed
end end
function __fish_brew_suggest_formulae_outdated -d "List of outdated formulae with the information about potential upgrade" function __fish_brew_suggest_formulae_outdated -d "List of outdated formulae with the information about potential upgrade"
brew outdated --verbose \ brew outdated --formula --verbose \
# replace first space with tab to make the following a description in the completions list: # replace first space with tab to make the following a description in the completions list:
| string replace -r '\s' '\t' | string replace -r '\s' '\t'
end end
@ -132,7 +132,7 @@ function __fish_brew_suggest_casks_installed -d "Lists installed casks"
end end
function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade" function __fish_brew_suggest_casks_outdated -d "Lists outdated casks with the information about potential upgrade"
brew cask outdated --verbose \ brew outdated --cask --verbose \
# replace first space with tab to make the following a description in the completions list: # replace first space with tab to make the following a description in the completions list:
| string replace -r '\s' '\t' | string replace -r '\s' '\t'
end end