From ef42c822e6ce152d66cb45fa27835488bb69f2c6 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sat, 16 Jan 2021 23:18:58 +0100 Subject: [PATCH] Update brainy theme with correct `compgen` syntax --- themes/brainy/brainy.theme.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/themes/brainy/brainy.theme.bash b/themes/brainy/brainy.theme.bash index e988be1f..1d0c879b 100644 --- a/themes/brainy/brainy.theme.bash +++ b/themes/brainy/brainy.theme.bash @@ -208,16 +208,15 @@ _brainy_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 }