Skip to content

Commit e599a95

Browse files
committed
lib/utilities: fix _bash-it-component-list-matching()
Use `sort -u` instead of `sort | uniq`
1 parent 91b4d5a commit e599a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utilities.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ _bash-it-component-list() {
125125
_bash-it-component-list-matching() {
126126
local component="$1"; shift
127127
local term="$1"
128-
_bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort | uniq
128+
_bash-it-component-help "${component}" | $(_bash-it-grep) -E -- "${term}" | awk '{print $1}' | sort -u
129129
}
130130

131131
_bash-it-component-list-enabled() {

0 commit comments

Comments
 (0)