Fix bash completion regex
This commit is contained in:
parent
30aabfe6d1
commit
4dbfcb481b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue