21,22c21,28 < r_overlays="$(layman -LkNq 2>/dev/null | grep -v '^$' | cut -d' ' -f3)" < l_overlays="$(layman -lkNq 2>/dev/null | grep -v '^$' | cut -d' ' -f3)" --- > r_overlays() { > local remotes="$(layman -LkNq 2>/dev/null | grep -v '^$' | cut -d' ' -f3)" > echo "$remotes" > } > l_overlays() { > local locals="$(layman -lkNq 2>/dev/null | grep -v '^$' | cut -d' ' -f3)" > echo "$locals" > } 34c40 < COMPREPLY=( $(compgen -W "${r_overlays}" -- "${cur}") ) --- > COMPREPLY=( $(compgen -W "$(r_overlays)" -- "${cur}") ) 38c44 < COMPREPLY=( $(compgen -W "${l_overlays}" -- "${cur}") ) --- > COMPREPLY=( $(compgen -W "$(l_overlays)" -- "${cur}") ) 42c48 < COMPREPLY=( $(compgen -W "${l_overlays} ALL" -- "${cur}") ) --- > COMPREPLY=( $(compgen -W "$(l_overlays) ALL" -- "${cur}") )