Fix bash completion regex

This commit is contained in:
Vulcalien 2021-10-10 15:35:46 +02:00
parent 30aabfe6d1
commit 4dbfcb481b

View File

@ -6,7 +6,7 @@ _terminator()
_init_completion || return
COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' |
command sed -n -e 's/ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\
command sed -n -e 's/^ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\
-- "$cur"))
} &&
complete -F _terminator terminator