diff options
author | Nicolas F | 2015-09-15 19:30:35 +0200 |
---|---|---|
committer | Nicolas F | 2015-09-15 19:30:35 +0200 |
commit | 58e03b9af4e7baf243c33cbea6940c9992ccc3bb (patch) | |
tree | 76d0aea44a87da698d0ce598c0f9c69e7ec4f597 /cumpletion.sh | |
parent | d58154e3b4c103bb6ef98dc6b28db7203fb35143 (diff) | |
download | aur-58e03b9af4e7baf243c33cbea6940c9992ccc3bb.tar.gz |
Add bash completion
Diffstat (limited to 'cumpletion.sh')
-rw-r--r-- | cumpletion.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cumpletion.sh b/cumpletion.sh new file mode 100644 index 000000000000..7fd22bfe80fc --- /dev/null +++ b/cumpletion.sh @@ -0,0 +1,8 @@ +_cum_completion() { + COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \ + COMP_CWORD=$COMP_CWORD \ + _CUM_COMPLETE=complete $1 ) ) + return 0 +} + +complete -F _cum_completion -o default cum; |