Skip to content

Commit

Permalink
Merge pull request #506 from Vulcalien/master
Browse files Browse the repository at this point in the history
Improve argument parser + implement bash completion
  • Loading branch information
mattrose authored Dec 19, 2021
2 parents 8f13bef + 4005958 commit d2c428b
Show file tree
Hide file tree
Showing 85 changed files with 21,935 additions and 16,374 deletions.
16 changes: 16 additions & 0 deletions completion/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# bash completion for terminator -*- shell-script -*-

_terminator()
{
local cur prev words cword
_init_completion || return

# TODO implement completion for --profile and --layout

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
Loading

0 comments on commit d2c428b

Please sign in to comment.