From c176f28f391dba43e882a5e92bf1edd4aac26216 Mon Sep 17 00:00:00 2001 From: metacollin Date: Thu, 19 Nov 2020 20:18:08 -0700 Subject: [PATCH] Added fixes. --- Library/Homebrew/cmd/formulae.sh | 10 +++++----- completions/zsh/_brew | 2 +- docs/Manpage.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/cmd/formulae.sh b/Library/Homebrew/cmd/formulae.sh index d333097632..bf102bdb30 100644 --- a/Library/Homebrew/cmd/formulae.sh +++ b/Library/Homebrew/cmd/formulae.sh @@ -1,11 +1,11 @@ -#: * `formulae` -#: +#: * `formulae` [] +#: #: Prints a sorted list of locally available formulas including shortnames. #: # shellcheck disable=SC2155 homebrew-formulae() { - local formulae="$(find "$HOMEBREW_REPOSITORY"/Library/Taps -type d \( -name Casks -o -name cmd -o -name .github \) -prune -false -o -name '*rb' | sed 's/\.rb//g' | sed -E 's .*/Taps/(.*)/homebrew- \1/ g' | sed 's /Formula/ / g')" - local shortnames="$(echo "$formulae" | cut -d / -f 3)" - echo -e "$formulae \n $shortnames" | grep -v '^homebrew/' | sort -uf + local formulae="$(\find "$HOMEBREW_REPOSITORY"/Library/Taps -type d \( -name Casks -o -name cmd -o -name .github \) -prune -false -o -name '*rb' | \sed -E -e 's/\.rb//g' -e 's_.*/Taps/(.*)/(home|linux)brew-_\1/_' -e 's|/Formula/|/|')" + local shortnames="$(echo "$formulae" | \cut -d / -f 3)" + echo -e "$formulae \n $shortnames" | \grep -v '^homebrew/' | \sort -uf } \ No newline at end of file diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 3654ee7a57..9dbb17e38c 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -111,7 +111,7 @@ __brew_common_commands() { 'edit:edit a formula' 'fetch:download formula resources to the cache' 'formula:the path for a formula' - 'formulas:show a sorted list of installable formulas' + 'formulae:show a sorted list of installable formulae' 'gist-logs:generate a gist of the full build logs' 'home:visit the homepage of a formula or the brew project' 'info:information about a formula' diff --git a/docs/Manpage.md b/docs/Manpage.md index 320050e31f..4f3c8931a7 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -242,7 +242,7 @@ For tarballs, also print SHA-256 checksums. ### `formulae` -Prints a sorted list of locally available formulas including shortnames. +List all locally available formulae including short names. ### `gist-logs` [*`options`*] *`formula`*