Disable SC2207 to keep COMPREPLY simple

This commit is contained in:
BarbUk
2021-01-22 18:41:16 +04:00
parent b92f53ece5
commit f86d823dc3
2 changed files with 11 additions and 14 deletions

View File

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