-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #506 from Vulcalien/master
Improve argument parser + implement bash completion
- Loading branch information
Showing
85 changed files
with
21,935 additions
and
16,374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.