Remove completion for --profile and --layout
The feature doesn't work well for items with spaces or quotes in the name.
This commit is contained in:
parent
817f820cfb
commit
4005958bf9
|
@ -5,18 +5,7 @@ _terminator()
|
||||||
local cur prev words cword
|
local cur prev words cword
|
||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
case $prev in
|
# TODO implement completion for --profile and --layout
|
||||||
--profile | -p)
|
|
||||||
COMPREPLY=($(compgen -W "$($1 --list-profiles)"\
|
|
||||||
-- "$cur"))
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
--layout | -l)
|
|
||||||
COMPREPLY=($(compgen -W "$($1 --list-layouts)"\
|
|
||||||
-- "$cur"))
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' |
|
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')"\
|
||||||
|
|
Loading…
Reference in New Issue