diff options
author | Vlad Petrov | 2021-05-18 16:25:36 +0300 |
---|---|---|
committer | Vlad Petrov | 2021-05-18 16:25:36 +0300 |
commit | 850edacbb6fd81be8cb1384132366493456c15e0 (patch) | |
tree | 6d415aa5416868a5103903d2cae535d89b7ceda5 /_jira | |
parent | 02c97d7e0906428606ca190b84a4311e48f9e016 (diff) | |
download | aur-go-jira.tar.gz |
go-jira: build go-jira from source
Diffstat (limited to '_jira')
-rw-r--r-- | _jira | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_jira b/_jira new file mode 100644 index 000000000000..c5dc6a2eda51 --- /dev/null +++ b/_jira @@ -0,0 +1,14 @@ +#compdef jira + +_jira() { + local matches=($(${words[1]} --completion-bash "${(@)words[1,$CURRENT]}")) + compadd -a matches + if [[ $compstate[nmatches] -eq 0 && $words[$CURRENT] != -* ]]; then + _files + fi +} + +# don't run the completion function when being source-ed or eval-ed +if [ "$funcstack[1]" = "_jira" ]; then + _jira +fi |