terminator/completion/bash

15 lines
362 B
Plaintext
Raw Normal View History

2021-09-08 23:04:42 +00:00
# bash completion for terminator -*- shell-script -*-
_terminator()
{
local cur prev words cword
_init_completion || return
COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' |
command sed -n -e 's/ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\
-- "$cur"))
} &&
complete -F _terminator terminator
# ex: filetype=sh