From b92f53ece5de1d4705d68aaccbb062c5732489be Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sat, 16 Jan 2021 23:20:43 +0100 Subject: [PATCH] Update atomic theme with correct `compgen` syntax --- themes/atomic/atomic.theme.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }