lib/utilities: fix `_bash-it-component-list-matching()`
Use `sort -u` instead of `sort | uniq`pull/1933/head
parent
91b4d5a0a4
commit
e599a9561c
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue