2021-09-08 23:04:42 +00:00
|
|
|
# bash completion for terminator -*- shell-script -*-
|
|
|
|
|
|
|
|
_terminator()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
2021-10-11 10:04:47 +00:00
|
|
|
case $prev in
|
|
|
|
--profile | -p)
|
|
|
|
COMPREPLY=($(compgen -W "$($1 --list-profiles)"\
|
|
|
|
-- "$cur"))
|
|
|
|
return
|
|
|
|
;;
|
|
|
|
--layout | -l)
|
|
|
|
COMPREPLY=($(compgen -W "$($1 --list-layouts)"\
|
|
|
|
-- "$cur"))
|
|
|
|
return
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2021-09-08 23:04:42 +00:00
|
|
|
COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' |
|
2021-10-10 13:35:46 +00:00
|
|
|
command sed -n -e 's/^ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\
|
2021-09-08 23:04:42 +00:00
|
|
|
-- "$cur"))
|
|
|
|
} &&
|
|
|
|
complete -F _terminator terminator
|
|
|
|
|
|
|
|
# ex: filetype=sh
|