Update atomic theme with correct `compgen` syntax

pull/1790/head
BarbUk 2021-01-16 23:20:43 +01:00
parent ef42c822e6
commit b92f53ece5
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 3 additions and 3 deletions

View File

@ -226,16 +226,16 @@ _atomic_completion() {
segments="battery clock exitcode python ruby scm sudo todo"
case "${_action}" in
show)
read -r -a COMPREPLY <<< "$(compgen -W "${segments}" -- "${cur}")"
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
return 0
;;
hide)
read -r -a COMPREPLY <<< "$(compgen -W "${segments}" -- "${cur}")"
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
return 0
;;
esac
read -r -a COMPREPLY <<< "$(compgen -W "${actions}" -- "${cur}")"
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${actions}" -- "${cur}")
return 0
}