diff --git a/themes/atomic/atomic.theme.bash b/themes/atomic/atomic.theme.bash index fb4e15af..caf488c7 100644 --- a/themes/atomic/atomic.theme.bash +++ b/themes/atomic/atomic.theme.bash @@ -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 }