Update brainy theme with correct `compgen` syntax
parent
86fd073ee6
commit
ef42c822e6
|
|
@ -208,16 +208,15 @@ _brainy_completion() {
|
||||||
segments="battery clock exitcode python ruby scm sudo todo"
|
segments="battery clock exitcode python ruby scm sudo todo"
|
||||||
case "${_action}" in
|
case "${_action}" in
|
||||||
show)
|
show)
|
||||||
read -r -a COMPREPLY <<< "$(compgen -W "${segments}" -- "${cur}")"
|
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
hide)
|
hide)
|
||||||
read -r -a COMPREPLY <<< "$(compgen -W "${segments}" -- "${cur}")"
|
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${actions}" -- "${cur}")
|
||||||
read -r -a COMPREPLY <<< "$(compgen -W "${actions}" -- "${cur}")"
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue