lib/utilities: fix `_bash-it-component-list-matching()`

Use `sort -u` instead of `sort | uniq`
pull/1933/head
John D Pell 2021-09-08 16:01:11 -07:00
parent 91b4d5a0a4
commit e599a9561c
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ _bash-it-component-list() {
_bash-it-component-list-matching() { _bash-it-component-list-matching() {
local component="$1"; shift local component="$1"; shift
local term="$1" local term="$1"
_bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort | uniq _bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort -u
} }
_bash-it-component-list-enabled() { _bash-it-component-list-enabled() {