Compare commits

...

1715 Commits

Author SHA1 Message Date
Shohei YOSHIDA b48b5de9d8
Merge pull request #1151 from zsh-users/update-chatblade
Update chatblade completion to version 0.7.0
2025-09-05 23:30:32 +09:00
Shohei YOSHIDA cd3cd0ab3b
Update chatblade completion to version 0.7.0 2025-09-05 12:42:18 +09:00
Shohei YOSHIDA 35228e5ac0
Merge pull request #1150 from zsh-users/nvm
Update nvm completion to version 0.40.3
2025-09-02 11:14:36 +09:00
Shohei YOSHIDA 3c89229e0e
Update nvm completion to version 0.40.3 2025-09-01 14:24:21 +09:00
Shohei YOSHIDA 8d5a945c93
Merge pull request #1149 from zsh-users/update_vnstat
Update vnstat completion to version 2.13
2025-08-24 12:37:43 +09:00
Shohei YOSHIDA cafb93cd93
Update vnstat completion to version 2.13 2025-08-23 19:14:12 +09:00
Shohei YOSHIDA e94efecefa
Merge pull request #1148 from zsh-users/update-gpgconf
Update gpgconf completion to version 2.4.4
2025-08-21 22:48:50 +09:00
Shohei YOSHIDA 1587db0b96
Update gpgconf completion to version 2.4.4 2025-08-21 13:49:33 +09:00
Shohei YOSHIDA 5884510698
Merge pull request #1147 from zsh-users/update-flutter-dart
Update flutter and dart completions
2025-08-15 17:07:56 +09:00
Shohei YOSHIDA cc16a51600
Update flutter completion to 3.35.1 2025-08-15 12:20:28 +09:00
Shohei YOSHIDA faa7c0f755
Update dart completion to version 3.9.0 2025-08-15 11:56:27 +09:00
Shohei YOSHIDA 90be2a206f
Merge pull request #1146 from zsh-users/go-1.25
Update flags for go 1.25.0
2025-08-13 15:36:30 +09:00
Shohei YOSHIDA cc18accaac
Update flags for go 1.25.0 2025-08-13 10:40:21 +09:00
Shohei YOSHIDA f55325505d
Merge pull request #1145 from zsh-users/add-uuid-utils
Add more uuid tool completions
2025-08-08 12:02:23 +09:00
Shohei YOSHIDA 6ba76c84eb
add uuidd completion 2025-08-07 13:56:36 +09:00
Shohei YOSHIDA ee6a2d0416
add uuidparse completion 2025-08-07 13:56:31 +09:00
Shohei YOSHIDA 1488badf72
Merge pull request #1144 from Aditi76117/missing-completions
Add missing completions for util-linux tools
2025-08-06 11:42:40 +09:00
Shohei YOSHIDA 73b5b78d70
Update blkid 2025-08-05 12:14:58 +09:00
Shohei YOSHIDA 50611e5b99
Update chmem 2025-08-05 12:01:27 +09:00
Shohei YOSHIDA 3ef170ff4f
Update fallocate 2025-08-05 11:56:29 +09:00
Shohei YOSHIDA dee6427296
Update ipcrm 2025-08-05 11:43:19 +09:00
Shohei YOSHIDA f21d28a4a1
Update ipcmk 2025-08-05 11:36:07 +09:00
Shohei YOSHIDA 420a3d78c9
Update ipcs 2025-08-05 11:30:57 +09:00
Shohei YOSHIDA 0032bac859
Update ldattach 2025-08-05 09:35:33 +09:00
Shohei YOSHIDA bdee8a976c
Update mcookie 2025-08-05 09:04:53 +09:00
Aditi76117 331e0ab9fa Remove _lsblk and _cal as they are already present in upstream zsh 2025-08-05 00:10:06 +05:30
Aditi76117 d9b1b2bfa9 Add completions for ipcmk (util-linux) 2025-08-04 01:27:06 +05:30
Aditi76117 8a7515adc8 Add completions for ipcmk (util-linux) 2025-08-04 01:12:02 +05:30
Aditi76117 3e05c06501 Add completions for chmem, ipcmk, ipcrm, ipcs, ldattach and mcookie (util-linux) 2025-08-04 01:03:12 +05:30
Aditi76117 0867c7fe93 Add completions for lsblk, cal, blkid, and fallocate (util-linux) 2025-08-03 19:08:01 +05:30
Shohei YOSHIDA 5f24f3bc42
Merge pull request #1142 from egorlem/diplodoc
Remove yfm completion
2025-07-27 15:13:16 +09:00
Shohei YOSHIDA fb87bc486f
Merge pull request #1141 from zsh-users/update-completions
Update nanoc and bundler completions
2025-07-20 20:06:13 +09:00
guesswhozzz dc58df104d Remove yfm completion
If Yandex ever tries to join a genuine free open-source community, don’t believe them—it’s deception
2025-07-19 01:31:09 +03:00
Shohei YOSHIDA 06b7c9bc38
Update bundle completion 2.7.0 2025-07-18 11:37:16 +09:00
Shohei YOSHIDA 12c780b2b1
Update nanoc completion version 4.13.5 2025-07-18 11:37:03 +09:00
Shohei YOSHIDA 922abfe707
Merge pull request #1140 from zsh-users/update-completions
Update completions cmake, node, xsel
2025-07-11 11:28:27 +09:00
Shohei YOSHIDA ed034970c2
Update xsel completion v1.2.1 2025-07-10 12:51:27 +09:00
Shohei YOSHIDA fe11bbe8b0
Update node completion v24.4.0 2025-07-10 12:41:55 +09:00
Shohei YOSHIDA 1ee071125e
Update cmake completion version 3.31 2025-07-10 11:56:56 +09:00
Shohei YOSHIDA 6ba54212d0
Merge pull request #1139 from zsh-users/update-shell-check
Update shellcheck completion v0.10.0
2025-07-09 11:56:48 +09:00
Shohei YOSHIDA 932c16fd0e
Update shellcheck completion 2025-07-08 11:35:41 +09:00
Shohei YOSHIDA e07f6fb780
Merge pull request #1137 from JesseAye/f2b-regex
Add fail2ban-regex options and parameters
2025-06-12 10:16:04 +09:00
Jesse Ayala d326bdc241
Fix error when no matching files in working dir
If there are no files in the current working directory, zparse opts complains with "missing argument for option: -g"

Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2025-06-11 20:17:41 -04:00
Jesse 335af5c72d Add fail2ban-regex options and parameters 2025-06-09 00:40:28 -04:00
Shohei YOSHIDA c29efd0bc3
Merge pull request #1136 from zsh-users/update-cppcheck
Update cppcheck completion to version 2.17.1
2025-06-01 09:25:57 +09:00
Shohei YOSHIDA 4625071e98
Update cppcheck completion to version 2.17.1 2025-05-29 22:03:43 +09:00
Shohei YOSHIDA 21789376b8
Merge pull request #1135 from zsh-users/update-completions
Update kak and clang utility completions
2025-05-25 11:16:50 +09:00
Shohei YOSHIDA a221bd2653
Update clang utilities 2025-05-23 13:33:49 +09:00
Shohei YOSHIDA ab95699400
Update UI type name list 2025-05-23 13:33:08 +09:00
Shohei YOSHIDA 99d000d880
Merge pull request #1134 from zsh-users/update-completions
Update shallow-backup, ufw completions
2025-05-17 21:42:55 +09:00
Shohei YOSHIDA d1469c6e4f
Update ufw completion 2025-05-16 17:44:28 +09:00
Shohei YOSHIDA 77cad16cc7
Update shallow-backup completion 2025-05-16 16:30:13 +09:00
Shohei YOSHIDA 8af769e5f1
Format 2025-05-16 16:24:21 +09:00
Shohei YOSHIDA 67e6bdbc3c
Update setcap completion flags 2025-05-16 16:24:04 +09:00
Shohei YOSHIDA 98dd809126
Merge pull request #1133 from zsh-users/update-nodejs
Update node completion for version 24.0.0
2025-05-08 11:24:25 +09:00
Shohei YOSHIDA c4fca6525a
Update node completion for version 24.0.0 2025-05-07 11:25:19 +09:00
Shohei YOSHIDA 4f6441f9ee
Merge pull request #1131 from zsh-users/update-pre-commit
Update pre-commit completion to version 4.2.0
2025-04-28 09:57:22 +09:00
Shohei YOSHIDA 4e0cdee2e7
Update pre-commit completion to version 4.2.0 2025-04-22 15:19:11 +09:00
Shohei YOSHIDA e5507e0d0c
Merge pull request #1129 from mkzer/fix-ohmyzsh-readme
Improve oh-my-zsh install instructions to avoid compinit duplication …
2025-04-11 14:10:58 +09:00
mkzer 370253ca8c Improve oh-my-zsh install instructions to avoid compinit duplication (fixes #603) 2025-04-10 20:04:49 +02:00
Shohei YOSHIDA e61c9c14d6
Merge pull request #1126 from zsh-users/remove_issue_template
Remove empty issue template
2025-03-12 20:00:19 +09:00
Shohei YOSHIDA 00cf14deaa
Remove empty issue template
This causes warnings according to GitHub's new issue template
2025-03-12 19:39:41 +09:00
Shohei YOSHIDA 6ea205dc14
Merge pull request #1125 from egorlem/TS-5.7-5.8
Update TypeScript completion from 5.6 to 5.8
2025-03-04 16:26:40 +09:00
guesswhozzz fc979f7a3e Remove unnecessary addition of flags in commands 2025-03-04 09:15:10 +03:00
guesswhozzz 42e9e1e563 Update TypeScript completion to version 5.8
patch note: https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/
2025-03-03 16:35:36 +03:00
guesswhozzz ee50f24411 Update TypeScript completion to version 5.7
patch note: https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/
2025-03-03 16:16:40 +03:00
Shohei YOSHIDA 0adf2f053e
Merge pull request #1123 from zsh-users/update_node
Update node completion to version 23.8.0
2025-02-14 12:08:32 +09:00
Shohei YOSHIDA b84082e664
Update node completion to version 23.8.0 2025-02-14 12:06:51 +09:00
Shohei YOSHIDA 7f0a0c4451
Merge pull request #1122 from zsh-users/update-go-1.24.0
Update go completion to version 1.24.0
2025-02-13 15:27:34 +09:00
Shohei YOSHIDA f9c7cbe31f
Update go completion to version 1.24.0 2025-02-12 17:11:41 +09:00
Shohei YOSHIDA 85e041be36
Merge pull request #1119 from kyanagi/rubocop_1_71
Update rubocop completion for version 1.71.0
2025-01-28 13:49:31 +09:00
Kouhei Yanagita bb09f70830
Update rubocop completion for version 1.71.0 2025-01-28 10:27:53 +09:00
Shohei YOSHIDA a7f01622f7
Merge pull request #1118 from zsh-users/update_ccache
Update ccache completion to version 4.10.2
2025-01-12 19:43:23 +09:00
Shohei YOSHIDA 681bd4bff8
Update ccache completion to version 4.10.2 2025-01-12 19:32:53 +09:00
Shohei YOSHIDA 1819f7aefc
Merge pull request #1117 from zsh-users/update_node
Update node completion to 23.6.0
2025-01-12 15:57:17 +09:00
Shohei YOSHIDA 4201e3ca77
Update node completion to 23.6.0 2025-01-10 14:55:27 +09:00
Shohei YOSHIDA c160d09fdd
Merge pull request #1116 from Mic92/typos
fix typos
2024-12-23 08:30:29 +09:00
Jörg Thalheim 59184db64a fix typos 2024-12-22 08:12:06 +01:00
Shohei YOSHIDA 6ff1a671a8
Merge pull request #1115 from zsh-users/update_node
Update node.js completion to version 23.4
2024-12-11 15:57:12 +09:00
Shohei YOSHIDA 3f00e7cf9b
Update node.js completion to version 23.4 2024-12-11 15:53:40 +09:00
Shohei YOSHIDA a169722fb3
fix typos 2024-12-11 15:17:17 +09:00
Shohei YOSHIDA 97804d9b97
Merge pull request #1114 from egorlem/diplodoc
Add completion script for yfm (diplodoc cli)
2024-12-11 15:15:20 +09:00
guesswhozzz 375d578d84 Update authors block 2024-12-11 08:53:45 +03:00
Shohei YOSHIDA bb6d6ba990
Update completion according to the help documents 2024-12-11 14:32:16 +09:00
Shohei YOSHIDA 1ae4ab5dc2
Remove needless configurations 2024-12-11 12:33:11 +09:00
Shohei YOSHIDA e7068f9923
Set argument parameter to options that take an argument 2024-12-11 11:44:38 +09:00
Shohei YOSHIDA a9c9c72fae
Fix according to coding convention
- Don't define global variables
- add command prefix to avoid conflicting names
2024-12-11 00:03:21 +09:00
guesswhozzz 8f1b90cd4b Add help argument 2024-12-10 17:31:22 +03:00
guesswhozzz b97fdbd1a6 Fix typo 2024-12-10 17:09:07 +03:00
guesswhozzz a0effab950 Remove unused file_types var 2024-12-10 16:43:06 +03:00
guesswhozzz 1b16b6c697 Add completion script for yfm (diplodoc cli) 2024-12-10 16:30:04 +03:00
Shohei YOSHIDA 874917fa56
Merge pull request #1113 from kyanagi/update-rspec
Update rspec completion
2024-11-26 13:06:04 +09:00
Kouhei Yanagita 509d844cc8 Update rspec completion
* Fix -I
* Setting exclusive options
* Configuring options that can be used multiple times
* Add descriptions for each formatters
2024-11-26 11:58:56 +09:00
Shohei YOSHIDA f607e941cb
Merge pull request #1112 from hydrargyrum/age
add completion for age
2024-11-20 09:57:13 +09:00
Shohei YOSHIDA 8d42717387
Fix options that can be specified many times 2024-11-19 23:38:45 +09:00
Shohei YOSHIDA 610aef9f12
Don't complete options when '--help' is specified 2024-11-19 23:38:45 +09:00
Shohei YOSHIDA 692e96ce54
Add format information 2024-11-19 23:38:45 +09:00
Shohei YOSHIDA 360ee98d66
Fix comment 2024-11-19 23:36:00 +09:00
Hg 6dec4885d3 add completion for age 2024-11-19 14:47:27 +01:00
Shohei YOSHIDA df14fc4a66
Merge pull request #1111 from zsh-users/add-util-linux
Add lscpu and uuidgen completion
2024-11-17 23:27:52 +09:00
Shohei YOSHIDA fdc290d417
Consider BSD distributions 2024-11-17 23:25:48 +09:00
Shohei YOSHIDA 2c2d87889a Consider macOS's uuidgen 2024-11-14 18:10:40 +09:00
Shohei YOSHIDA 8f3baa3b1e
Add lscpu completion 2024-11-13 00:04:25 +09:00
Shohei YOSHIDA c791de1006
Add uuidgen 2024-11-12 23:37:32 +09:00
Shohei YOSHIDA 9df3345fe4
Merge pull request #1110 from zsh-users/update-tsc
Update tsc options
2024-11-08 10:12:35 +09:00
Shohei YOSHIDA 072561b06f
Update tsc options 2024-11-08 10:02:14 +09:00
Shohei YOSHIDA dedc7871fd
Merge pull request #1108 from zsh-users/update-flutter-dart
Update flutter and dart completion
2024-11-04 21:29:17 +09:00
Shohei YOSHIDA b6a32c0053
Update flutter completion 2024-10-29 13:08:41 +09:00
Shohei YOSHIDA e2e529a7fa
Update dart compiletion 2024-10-29 12:20:59 +09:00
Shohei YOSHIDA 066b069150
Merge pull request #1107 from zsh-users/update-node
Update node completion 23.0.0
2024-10-18 11:12:28 +09:00
Shohei YOSHIDA 16dd307a93
Update node completion 23.0.0 2024-10-17 11:55:18 +09:00
Shohei YOSHIDA d24f58d2f1
Merge pull request #1104 from telemachus/golang-telemetry
Add 'go telemetry' completion
2024-09-17 11:37:50 +09:00
Peter Aronoff 139dc0e2d9 Add 'go telemetry' completion 2024-09-15 14:50:31 -04:00
Shohei YOSHIDA 10dd51ded3
Merge pull request #1102 from zsh-users/update-node
Update node completion for version 22.8
2024-09-05 12:20:48 +09:00
Shohei YOSHIDA 06e2f14637
Update node completion for version 22.8 2024-09-04 12:47:39 +09:00
Shohei YOSHIDA 19ddc7f7cf
Merge pull request #1100 from zsh-users/update-node
Update node completion to version 22.7
2024-08-31 11:23:03 +09:00
Shohei YOSHIDA dbf4d71d5f
Update node completion to version 22.7 2024-08-30 11:26:34 +09:00
Shohei YOSHIDA f96778edad
Merge pull request #1097 from zsh-users/update-go
Update go completion for version 1.23
2024-08-15 09:47:56 +09:00
Shohei YOSHIDA 53d5876cfe
Update go completion for version 1.23 2024-08-14 11:58:59 +09:00
Shohei YOSHIDA b5e87b9a1a
Merge pull request #1096 from zsh-users/update-rails
Update rails completion list
2024-08-14 11:42:16 +09:00
Shohei YOSHIDA 3b824c596e
Update rails completion list
And update command that generates the list for Rails 7.2
2024-08-13 11:56:40 +09:00
Shohei YOSHIDA e897589c96
Merge pull request #1095 from zsh-users/update-misc
Update completions
2024-08-04 16:16:40 +09:00
Shohei YOSHIDA 35f2ed45dd
Update rubocop completion 2024-08-04 14:19:54 +09:00
Shohei YOSHIDA 5e40b7ba09
Update direnv completion 2024-08-04 14:19:43 +09:00
Shohei YOSHIDA 4dfb7a51c5
Cleanup code 2024-08-04 14:19:29 +09:00
Shohei YOSHIDA 8abb801db2
Update clang-tidy completion 2024-08-04 14:18:12 +09:00
Shohei YOSHIDA 3ce9d453ae
Update ccache completion 2024-08-04 14:17:57 +09:00
Shohei YOSHIDA 4145b89b06
Merge pull request #1094 from zsh-users/update-rails
Update rails completion
2024-08-01 17:12:28 +09:00
Shohei YOSHIDA f8a220d657
Update rails completion 2024-08-01 11:39:07 +09:00
Shohei YOSHIDA 77005bb0dc
Merge pull request #1093 from zsh-users/update-go-completion
Update go completion
2024-07-31 19:52:22 +09:00
Shohei YOSHIDA 22222832d8
Update environment variable completion
And don't use global variables
2024-07-31 16:42:02 +09:00
Shohei YOSHIDA f036321bc4
Update version 2024-07-31 12:10:56 +09:00
Shohei YOSHIDA ef50c3a7b9
Update 'go test' completion 2024-07-31 12:10:22 +09:00
Shohei YOSHIDA 9380071ffb
Update 'go mod' completion 2024-07-31 12:06:03 +09:00
Shohei YOSHIDA 580b096df4
Update 'go tool trace' completion 2024-07-30 12:58:19 +09:00
Shohei YOSHIDA da937c9124
Update 'go tool vet' completion 2024-07-30 12:51:36 +09:00
Shohei YOSHIDA a8dacc93aa
Update 'go tool pack' completion 2024-07-30 12:43:19 +09:00
Shohei YOSHIDA 238d3b0749
Update 'go tool fix' completion 2024-07-30 12:38:41 +09:00
Shohei YOSHIDA 13b8ba55e2
Update 'go tool compile' completion 2024-07-30 12:36:24 +09:00
Shohei YOSHIDA 89d7a5ec24
Update 'go list' completion 2024-07-30 12:26:31 +09:00
Shohei YOSHIDA 78c0ab5f95
Update 'go generate' completion 2024-07-30 12:19:18 +09:00
Shohei YOSHIDA aac56495ba
Update 'go fmt' completion 2024-07-30 12:17:57 +09:00
Shohei YOSHIDA 61c84a203c
Update 'go env' environment list 2024-07-30 12:15:24 +09:00
Shohei YOSHIDA 937cd0fcea
Complete package name in 'go doc' 2024-07-30 11:56:50 +09:00
Shohei YOSHIDA f475c1322f
Improve 'go help' completion 2024-07-29 18:47:46 +09:00
Shohei YOSHIDA 057d9a9940
Update 'go fix' completion 2024-07-29 18:36:59 +09:00
Shohei YOSHIDA 5a4bbc1ad8
Update 'go tool cgo' completion 2024-07-29 18:10:37 +09:00
Shohei YOSHIDA b4c970619b
Add 'go tool buildid' completion 2024-07-29 17:59:51 +09:00
Shohei YOSHIDA 91fce88036
Update 'go tool asm' completion 2024-07-29 17:57:17 +09:00
Shohei YOSHIDA 177fadadba
Update 'go vet' completion 2024-07-29 17:46:12 +09:00
Shohei YOSHIDA 4b55f149e6
Update help and work subcommand completions 2024-07-29 14:28:17 +09:00
Shohei YOSHIDA f8c41dbdbb
Merge pull request #1092 from zsh-users/refactor_go
Don't use global variables in go completion
2024-07-29 14:17:53 +09:00
Shohei YOSHIDA 499e5be22e
Don't use global variables
and fix indentations
2024-07-29 12:12:52 +09:00
Shohei YOSHIDA a50d486f6d
Merge pull request #1091 from zsh-users/update-nano
Update nano complete to version 8.1
2024-07-17 14:56:24 +09:00
Shohei YOSHIDA 14160839cb
Update nano complete to version 8.1 2024-07-17 11:30:28 +09:00
Shohei YOSHIDA 7a884c75b4
Merge pull request #1086 from zsh-users/update-node
Update node.js completion to version 22.3
2024-06-26 11:32:54 +09:00
Shohei YOSHIDA 7313f8360b
Merge pull request #1088 from Mumumu4/fix-nft-type-in-name
Fix nftables completion: when object name contains its type name
2024-06-26 11:32:26 +09:00
Shohei YOSHIDA 0a8eb1b0b7
Merge pull request #1087 from Mumumu4/update-nftable
Update nftables completion
2024-06-26 11:21:18 +09:00
Mumumu 0bd94fb993
Fix nftables completion: when object name contains its type name, the completion may mass up
E.g.
```
table inet foo {
        chain my_chain {
                jump my_chain2
        }
        chain my_chain2 {
        }
}
```

`nft delete chain inet foo <tab>`
get
```
handle                          -- address chain by handle
my_chain2                       -- (handle 31)
my_chain                        -- (handle 30)
\t\tjump my_chain2 # handle 33
```
the last line in the completion output is not wanted.
2024-06-25 21:34:06 +08:00
Mumumu 6621b9fa2f
Update nftables completion
add completion for set/map name in `nft add/delete element [family] table <tab>`
2024-06-25 20:13:44 +08:00
Shohei YOSHIDA 0a66357930
Update node.js completion to version 22.3 2024-06-24 16:37:02 +09:00
Shohei YOSHIDA 978e79e12c
Merge pull request #1084 from zsh-users/update-node
Update node completion for version 22.2.0
2024-05-21 09:40:12 +09:00
Shohei YOSHIDA fce3599932
Update node completion for version 22.2.0 2024-05-16 12:46:30 +09:00
Shohei YOSHIDA b1cf651870
Merge pull request #1081 from zsh-users/update-node
Update node completion to version v22.0.0
2024-04-25 13:03:23 +09:00
Shohei YOSHIDA a46f3ffca2
Update node completion to version v22.0.0 2024-04-25 12:56:56 +09:00
Shohei YOSHIDA efaa595ae9
Merge pull request #1080 from hydrargyrum/rdfind
add completion for rdfind
2024-04-17 09:41:25 +09:00
Shohei YOSHIDA 542e80beee
Add format configuration 2024-04-17 09:40:53 +09:00
Hg a830cb4229 add completion for rdfind 2024-04-15 11:21:45 +02:00
Shohei YOSHIDA 7e78199771
Merge pull request #1078 from hydrargyrum/neo
add completion for neo
2024-04-15 14:12:25 +09:00
Shohei YOSHIDA 8ded919b3f
Fix format 2024-04-15 14:11:16 +09:00
Shohei YOSHIDA c48586fd04
Merge pull request #1077 from hwknsj/fix-yarn-completion
fix(yarn): use `builtin cd` in yarn completion
2024-04-15 11:54:59 +09:00
joél hawkins torres 4fc8c131ba
fix(yarn): use builtin cd in yarn completion
Signed-off-by: joél hawkins torres <joel@joel.fm>
2024-04-13 22:54:49 -07:00
Hg a458210c1d add completion for neo 2024-04-13 22:41:26 +02:00
Shohei YOSHIDA 83cbd81082
Merge pull request #1076 from zsh-users/remove-fvm
Remove _fvm completion
2024-04-11 15:23:25 +09:00
Shohei YOSHIDA 7666b5fe6d
Remove _fvm completion
Because _fvm supports zsh completion itself since version 3.0
2024-04-10 11:19:58 +09:00
Shohei YOSHIDA 2f951267cd
Merge pull request #1074 from zsh-users/update-flutter-completion
Update flatter completion to 3.19.3
2024-03-18 22:06:27 +09:00
Shohei YOSHIDA c1f23ccd02
Update flatter completion to 3.19.3 2024-03-18 16:15:38 +09:00
Shohei YOSHIDA 507f1f8715
Merge branch 'pr-1065' 2024-02-07 18:20:31 +09:00
Shohei YOSHIDA 9f7a83c0ac
Refactoring
- Shorten too long descriptions
- Add missing option descriptions
- Improve completion
2024-02-07 18:19:32 +09:00
Shohei YOSHIDA 10d8919acb
Add magic comment 2024-02-07 17:43:53 +09:00
Wu Zhenyu 42c6d28610
Add pre-commit
Modified from rejected https://github.com/pre-commit/pre-commit/pull/2506
2024-02-06 11:17:19 +08:00
Shohei YOSHIDA 06bda0b3e9
Add magic comment 2024-02-06 09:09:41 +09:00
Wu Zhenyu f34f9d915d
Add l3build
Modified from rejected https://github.com/latex3/l3build/pull/267
2024-02-06 09:09:21 +09:00
Shohei YOSHIDA 0cfa4990ac
Merge pull request #1069 from simonzsolt/feat/add-mix-phx-gen-live
add completion for `mix phx.gen.live`
2024-02-01 17:25:09 +09:00
Zsolt Simon 9a23ac3509 add completion for `mix phx.gen.live` 2024-01-24 13:16:39 +01:00
Shohei YOSHIDA 25691f59b5
Merge pull request #1066 from slawekjaranowski/mvn-4
Support Maven 4.x and improvements
2024-01-24 11:41:19 +09:00
Slawomir Jaranowski 1a5f36cdc4
Support Maven 4.x and improvements
- support Maven 4
- fix missing short options for Maven 3
- fix error for unknown Maven  version
2024-01-23 22:50:08 +01:00
Shohei YOSHIDA f7c3173886
Merge pull request #1060 from zsh-users/update-node
Update node.js completion to version 21.3.0
2023-12-01 22:08:35 +09:00
Shohei YOSHIDA 11e5579d35
Update node.js completion to version 21.3.0 2023-12-01 16:47:58 +09:00
Shohei YOSHIDA 9da7488c11
Merge pull request #1059 from zsh-users/update-flutter
Update flutter and dart completion for flutter 3.16.0
2023-11-20 14:47:10 +09:00
Shohei YOSHIDA 719d72d025
Update flutter and dart completion for flutter 3.16.0 2023-11-20 11:47:46 +09:00
Shohei YOSHIDA 634736c009
Merge pull request #1058 from zsh-users/update-node
Update node completion v21.2.0
2023-11-16 09:41:02 +09:00
Shohei YOSHIDA e12430589c
Update node completion v21.2.0 2023-11-15 13:36:50 +09:00
Shohei YOSHIDA 9e341f6a20
Merge pull request #1057 from jeremy-rifkin/patch-1
Add -DBUILD_SHARED_LIBS completion for cmake completions
2023-11-14 09:30:16 +09:00
Jeremy Rifkin d04e01fce3
Add -DBUILD_SHARED_LIBS completion for cmake completions 2023-11-13 10:11:11 -05:00
Shohei YOSHIDA a0f027a1de
Merge pull request #1055 from zsh-users/update-node
Update node.js for version 21.1.0
2023-10-26 11:46:18 +09:00
Shohei YOSHIDA e097ee8b0c
Update node.js for version 21.1.0 2023-10-25 12:30:10 +09:00
Shohei YOSHIDA ac96055f0c
Merge pull request #1054 from aoyama-val/add-jest
Add jest completion
2023-10-22 00:07:52 +09:00
Shotaro Aoyama fee1c475af Add jest completion 2023-10-21 18:46:54 +09:00
Shohei YOSHIDA 7f84cdaf9c
Merge pull request #1053 from zsh-users/update-node
Update node completion for version 21.0.0
2023-10-18 12:46:12 +09:00
Shohei YOSHIDA bd6f7d8c5b
Update node completion for version 21.0.0 2023-10-18 11:05:11 +09:00
Shohei YOSHIDA 8a06b24ae1
Merge pull request #1051 from zsh-users/do-release-upgrade
Add do-release-upgrade completion
2023-10-18 10:25:55 +09:00
Shohei YOSHIDA 5979928262
Merge pull request #1052 from benash/patch-1
Fix homebrew link
2023-10-18 10:17:30 +09:00
Benjamin Nash 903b9b7134
Fix homebrew link 2023-10-17 11:00:00 -04:00
Shohei YOSHIDA fd6ac7bd64
Add do-release-upgrade completion 2023-10-16 12:13:05 +09:00
Shohei YOSHIDA e969ea6f6e
Merge pull request #1050 from alichtman/master
Add basic completions for shallow-backup
2023-10-13 18:39:55 +09:00
Aaron Lichtman 660b7e4963
Update src/_shallow-backup
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-10-12 23:51:02 -07:00
Aaron Lichtman 1e80d3c1bf
Update src/_shallow-backup
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-10-12 23:50:51 -07:00
Aaron Lichtman 9d358ae351
Update src/_shallow-backup
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-10-12 23:50:45 -07:00
Aaron Lichtman 8fed2d1e83
Update src/_shallow-backup
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-10-12 23:50:32 -07:00
Aaron Lichtman 9a59a71911
Update src/_shallow-backup
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-10-12 23:50:24 -07:00
Aaron Lichtman 1f93068627
Add basic completions for shallow-backup
This adds basic tab completion for
https://github.com/alichtman/shallow-backup/

This will fix https://github.com/alichtman/shallow-backup/issues/324
2023-10-12 15:11:06 -07:00
Shohei YOSHIDA 2c1e9af195
Merge pull request #1049 from zsh-users/bug-set-global-variable
Don't set global variable in srm completion
2023-10-04 10:24:53 +09:00
Shohei YOSHIDA 4351e11484
Don't set global variable in srm completion 2023-10-04 10:21:57 +09:00
Shohei YOSHIDA 88d1bceafb
Merge pull request #1047 from zsh-users/support-thc-impl
Support THC secure-delete
2023-10-04 01:03:08 +09:00
Shohei YOSHIDA 81013dbbc1
Merge pull request #1048 from zsh-users/update-cpp-check
Update cppcheck completion for version 2.12
2023-10-04 01:02:46 +09:00
Shohei YOSHIDA 1fab982047
Update cppcheck completion for version 2.12 2023-10-03 20:22:20 +09:00
Shohei YOSHIDA 41e7188db5
Support THC secure-delete
Recent Linux distribution uses newer THC secure-delete and
it only supports few options.
2023-10-03 20:05:59 +09:00
Shohei YOSHIDA 5e6f4da967
Merge pull request #1046 from zsh-users/do-not-use-global-variable
Do not use global variable, use local variable instead
2023-10-03 18:51:39 +09:00
Shohei YOSHIDA d88edeed35
Do not use global variable, use local variable instead 2023-10-03 16:51:13 +09:00
Shohei YOSHIDA c05d0fdfe0
Merge pull request #1045 from zsh-users/update_rails
Update rails completion version 7
2023-10-02 16:20:02 +09:00
Shohei YOSHIDA e7ccc55947
Fix missing completion 2023-10-02 14:14:03 +09:00
Shohei YOSHIDA 2c5bfabb5e
Add task completions 2023-09-29 21:18:44 +09:00
Shohei YOSHIDA 7a19598927
Update test completion 2023-09-29 11:23:43 +09:00
Shohei YOSHIDA 1a9467fdff
Update generate and destroy completions 2023-09-28 16:12:26 +09:00
Shohei YOSHIDA 8068693aee
Update console and server completions 2023-09-28 13:44:23 +09:00
Shohei YOSHIDA d7f6a06e1a
Remove needless generate functions 2023-09-28 12:29:52 +09:00
Shohei YOSHIDA 9f9c4dec36
Update generator subcommand completions 2023-09-28 12:28:38 +09:00
Shohei YOSHIDA 0a1a8b89d9
Update rails new and generate completion 2023-09-27 22:29:52 +09:00
Shohei YOSHIDA c0fe16fdad
Merge pull request #1044 from zsh-users/update-node
Update node.js completion
2023-09-19 19:31:30 +09:00
Shohei YOSHIDA b57558b024
Update node.js completion
Multiple `--env-file` options are accpeted since node v20.7
2023-09-19 14:35:20 +09:00
Shohei YOSHIDA bed209ca64
Merge pull request #1039 from johannes87/master
Add completion script for chatblade
2023-09-18 00:04:08 +09:00
Johannes Bittner c118ed452d implement suggestions 2023-09-17 13:15:19 +02:00
Johannes Bittner 0d26ab80ed "local state" breaks --session completion 2023-09-17 13:07:10 +02:00
Johannes Bittner fb7078044b
prevent global variables from overwriting
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-09-17 12:44:31 +02:00
Johannes Bittner bc8cdc6b79 Merge branch 'master' of github.com:johannes87/zsh-completions 2023-09-17 12:44:01 +02:00
Johannes Bittner 7e9e14517d remove trailing spaces 2023-09-17 12:43:32 +02:00
Shohei YOSHIDA 07fe4030a6
Merge pull request #1043 from zsh-users/update-fwupdmgr
Update fwupdmgr completion to 1.8.12
2023-09-15 18:46:43 +09:00
Shohei YOSHIDA 6cbfc1b942
Update fwupdmgr completion to 1.8.12
- Add new options and remove obsoleted options
- Fix broken device ID completions
- Simplify code
2023-09-13 14:41:03 +09:00
Johannes Bittner facf918250
Apply suggestions from code review
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-09-08 00:41:23 +02:00
Shohei YOSHIDA 0cee6ab508
Merge pull request #1041 from zsh-users/refactor-port
Refactoring port
2023-09-05 23:01:33 +09:00
Shohei YOSHIDA 35b2bfe90c
Merge pull request #1042 from zsh-users/update-node
Update node completion to v20.6.0
2023-09-05 23:00:54 +09:00
Shohei YOSHIDA 1ec2fd373f
Update node completion to v20.6.0 2023-09-05 12:50:51 +09:00
Shohei YOSHIDA 76dde7cb7b Refactoring port
- Reduce executing external commands
- Reduce escape characters
2023-09-05 12:17:43 +09:00
Shohei YOSHIDA c8c09241eb
Merge pull request #1040 from zsh-users/fix-invalid-initialization
Fix wrong initial value settings
2023-09-05 08:48:25 +09:00
Shohei YOSHIDA 898dbaf873
Merge pull request #1036 from zsh-users/update-gtk-launch
Fix broken gtk-launch completion and update
2023-09-05 08:45:48 +09:00
Shohei YOSHIDA 9dfd82bc78
Fix broken gtk-launch completion and update
- Use zsh builtin functions instead of external commands
- Stop parsing desktop file
  - Because it often causes error
  - It is difficult to extract the description that is in user's language
- Support gtk4-launch
2023-09-05 08:45:14 +09:00
Shohei YOSHIDA c23b29fff8
Merge pull request #1037 from zsh-users/refactor-direnv
Refactoring direnv
2023-09-05 08:43:28 +09:00
Shohei YOSHIDA da36aa8710
Merge pull request #1038 from zsh-users/fix-mac-ports-cache-policy-function
Fix port's cache policy function
2023-09-05 08:42:35 +09:00
Johannes Bittner 28f602902e Add completion script for chatblade 2023-09-04 13:48:19 +02:00
Shohei YOSHIDA ae3a2e4400 Fix port's cache policy function
The option of stat on macOS/BSD is wrong. So cache is always purged and
cache is always recreated so it is really slow.

Use 'zstat' module instead stat command for portability.
2023-09-04 17:12:07 +09:00
Shohei YOSHIDA db79320716
Fix wrong initial value settings 2023-09-04 15:49:49 +09:00
Shohei YOSHIDA abbd91220b
Refactoring direnv
- Do not use global variables, use local variables instead
- Reduce needless _arguments calls
2023-09-04 14:47:03 +09:00
Shohei YOSHIDA ab99231c26
Merge pull request #1033 from zsh-users/add-supervisord
Add supervisord completion
2023-09-01 10:55:47 +09:00
Shohei YOSHIDA 31845d56b2
Merge pull request #1032 from zsh-users/update_supervisorctl
Update supervisorctl completion
2023-09-01 10:55:34 +09:00
Shohei YOSHIDA 43a0fd3b44
Add supervisord completion 2023-08-29 00:08:52 +09:00
Shohei YOSHIDA a2dae495f7
Update supervisorctl completion
- Reduce executing 'supervisorctl (status|avail)' times
- Don't modify global variables
- Support new options
2023-08-28 23:47:39 +09:00
Shohei YOSHIDA 67921bc125
Merge pull request #1031 from zsh-users/update_nanoc
Update nanoc completion and cleanup its code
2023-08-28 12:03:18 +09:00
Shohei YOSHIDA 796ee337fa
Accpet multiple env arguments 2023-08-28 12:01:03 +09:00
Shohei YOSHIDA 7603240219
Update nanoc completion and cleanup its code 2023-08-27 20:43:14 +09:00
Shohei YOSHIDA 5ccec94b18
Merge pull request #1030 from zsh-users/refactor_fvm
Refactor fvm completion
2023-08-25 08:43:12 +09:00
Shohei YOSHIDA 5794f18e01
Refactor fvm completion 2023-08-24 23:42:07 +09:00
Shohei YOSHIDA 4172b053de
Merge pull request #1029 from zsh-users/refactor-udisksctl
Refactoring udisksctl completion
2023-08-24 23:09:26 +09:00
Shohei YOSHIDA 7494992bab
Refactoring udisksctl completion
- Apply formatting
- Use local variables instead of global variables
- Fix typos
- Update project URL
2023-08-24 17:45:42 +09:00
Shohei YOSHIDA 955ac75daf
Merge pull request #1028 from zsh-users/update-flutter
Update flutter and dart completion
2023-08-17 16:15:08 +09:00
Shohei YOSHIDA 2a2efae5f6
Update flutter and dart completion 2023-08-17 15:57:27 +09:00
Shohei YOSHIDA fdcb0ef6f3
Merge pull request #1027 from zsh-users/variable_name_issue
Avoid defining local variable 'options'
2023-08-17 15:06:55 +09:00
Shohei YOSHIDA ba54f170a6 Avoid defining local variable options
zsh has the built in variable 'options'. zsh sometimes behaves
weirdly when there is a local variable that is named 'options'
2023-08-17 12:13:27 +09:00
Shohei YOSHIDA 75094d7275
Merge pull request #1026 from zsh-users/update-rubocop
Update rubocop completion for version 1.55
2023-08-09 12:38:57 +09:00
Shohei YOSHIDA 5e0f32e676
Merge pull request #1025 from zsh-users/update-protoc
Update protoc completion for version 24.0
2023-08-09 12:38:24 +09:00
Shohei YOSHIDA 2732408990
Merge pull request #1024 from zsh-users/update-golang
Update for go 1.21
2023-08-09 12:35:39 +09:00
Shohei YOSHIDA b44635f0d9
Update rubocop completion for version 1.55 2023-08-09 11:39:37 +09:00
Shohei YOSHIDA 30fd820805
Update protoc completion for version 24.0 2023-08-09 11:21:29 +09:00
Shohei YOSHIDA 05fd700404
Update for go 1.21 2023-08-09 08:34:54 +09:00
Shohei YOSHIDA 5328eb7c01
Merge pull request #1021 from zsh-users/update-rfkill
Update rfkill completion
2023-07-02 09:42:12 +09:00
Shohei YOSHIDA 3a817b893e
Update rfkill completion 2023-07-02 09:41:31 +09:00
Shohei YOSHIDA 97c9884255
Merge pull request #1020 from zsh-users/update-rspec
Update rspec completion to version 3.12.0
2023-07-01 11:40:26 +09:00
Shohei YOSHIDA e359dcb1d3
Update rspec completion to version 3.12.0 2023-06-29 16:55:08 +09:00
Shohei YOSHIDA 83f09c4615
Merge pull request #1019 from zsh-users/update-golang
Update go completion version 1.21
2023-06-23 15:05:54 +09:00
Shohei YOSHIDA e8814323ff
Merge pull request #1017 from zsh-users/update_httpie
Update httpie 3.2.2 completion
2023-06-23 15:05:24 +09:00
Shohei YOSHIDA aa5af8f991
Merge pull request #1018 from zsh-users/add-version-info-dart
Add version to dart completion for maintenance
2023-06-22 19:05:29 +09:00
Shohei YOSHIDA cfc3d2a207
Update go completion version 1.21 2023-06-22 16:47:45 +09:00
Shohei YOSHIDA 323231ac9d
Add version to dart completion for maintenance 2023-06-22 11:27:22 +09:00
Shohei YOSHIDA 302f477e10
Update httpie completion 2023-06-22 11:17:10 +09:00
Shohei YOSHIDA 66c4b6fe72
Merge pull request #1015 from eclairevoyant/delete-yaourt
Delete yaourt completion
2023-06-04 21:15:41 +09:00
éclairevoyant 543f122195
Delete _yaourt 2023-06-04 02:38:34 -04:00
Shohei YOSHIDA 744af1910b
Merge pull request #1014 from zsh-users/add-mkcert
Add mkcert completion
2023-05-24 14:12:39 +09:00
Shohei YOSHIDA b9d86204bb
Add mkcert completion 2023-05-23 11:47:58 +09:00
Shohei YOSHIDA a7bdfdf56e
Merge pull request #1012 from zsh-users/typescript-tools
Add tsc and ts-node completions
2023-05-22 10:51:20 +09:00
Shohei YOSHIDA 128f6dec82
Merge pull request #1013 from zsh-users/update-vnstat
Add vnstat completion
2023-05-22 00:38:18 +09:00
Shohei YOSHIDA 8990e74097
Update vnstat completion 2023-05-22 00:36:29 +09:00
Shohei YOSHIDA 212b0d50f1
Add tsc and ts-node completions 2023-05-20 23:04:53 +09:00
Shohei YOSHIDA 0ebf45ba93
Merge pull request #1011 from zsh-users/dart-completion
Add dart completion
2023-05-20 07:40:59 +09:00
Shohei YOSHIDA 4516f61d96
Support 'fvm dart' completion 2023-05-18 15:15:16 +09:00
Shohei YOSHIDA 4f59353fe1
Remove deprecated 'flutter format' completion 2023-05-18 15:14:43 +09:00
Shohei YOSHIDA 7427f0a294
Add dart completion 2023-05-18 15:08:35 +09:00
Shohei YOSHIDA 449cc702dc
Merge pull request #1010 from zsh-users/update-flutter-3.10.0
Update flutter completion for version 3.10.0
2023-05-12 10:42:43 +09:00
Shohei YOSHIDA 90471c3877
Update flutter completion for version 3.10.0 2023-05-11 22:21:15 +09:00
Shohei YOSHIDA 64ec7994dc
Merge pull request #1009 from zsh-users/grpcurl
Add grpcurl completion
2023-04-27 11:04:33 +09:00
Shohei YOSHIDA ec557e1fed
Add grpcurl completion 2023-04-24 10:40:14 +09:00
Shohei YOSHIDA 45a37bc26f
Merge pull request #1006 from zsh-users/update-node
Update node.js completion for version 20.0.0
2023-04-23 21:28:59 +09:00
Shohei YOSHIDA e797437fe5
Update node.js completion for version 20.0.0 2023-04-19 11:31:42 +09:00
Shohei YOSHIDA 820aaba911
Merge pull request #1003 from notmike-5/master
updated _bitcoin-cli to match bitcoind v24.1rc1
2023-03-29 07:12:59 +09:00
notmike 889db4f8f6
Update src/_bitcoin-cli
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-03-28 15:54:27 -06:00
notmike cd3b8a4657
Update src/_bitcoin-cli
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2023-03-28 15:54:17 -06:00
notmike-5 c20d6e9212 updated _bitcoin-cli to match bitcoind v24.1rc1 2023-03-27 20:58:34 -06:00
Shohei YOSHIDA 98ea8e685c
Merge pull request #1001 from zsh-users/update-conan-2.0.0
Update conan completion and refactoring
2023-02-26 14:27:05 +09:00
Shohei YOSHIDA 40ae92e112
Update conan completion and refactoring 2023-02-24 23:33:53 +09:00
Shohei YOSHIDA 92dc417c3e
Merge pull request #999 from zsh-users/update-node
Update node.js completion for version 19.7.0
2023-02-23 18:58:17 +09:00
Shohei YOSHIDA d71ddaa6eb
Merge pull request #1000 from vsannikov/fix-virtualbox-medium
Fix virtualbox medium-related commands
2023-02-22 18:41:50 +09:00
Shohei YOSHIDA ddb66cf14c
Update node.js completion for version 19.7.0 2023-02-22 11:53:08 +09:00
Shohei YOSHIDA ec3fc086c3
Merge pull request #998 from vsannikov/fix-virtualbox-createvm
Fix `vboxmanage createvm --ostype` completion
2023-02-22 10:58:47 +09:00
V.Sannikov 234e5d3e61 Fix `vboxmanage` medium-related commands parameters:
These commands accept a file name (or an UUID), not a VM name, as a
positional parameter.
2023-02-21 18:14:13 +03:00
V.Sannikov 9fa28becba Fixed `vboxmanage closemedium` redundant parameters completion:
the command takes not more than two positional parameters.
2023-02-21 17:56:33 +03:00
V.Sannikov b030b22f64 Fix misleading description for `vboxmanage --ostype` values 2023-02-21 16:23:38 +03:00
V.Sannikov 348187fac2 Fix `--ostype` argument of `vboxmanage createvm` command 2023-02-21 15:49:07 +03:00
Shohei YOSHIDA 4de5a8cc6a
Merge pull request #997 from zsh-users/support-flutter-build-completion
Implement 'flutter build target' completion
2023-02-20 21:38:47 +09:00
Shohei YOSHIDA 60699cd07d
Merge pull request #996 from Freed-Wu/neofetch
Add neofetch
2023-02-20 15:16:16 +09:00
Wu Zhenyu 7f2beb4fd3
Add neofetch 2023-02-20 11:43:19 +08:00
Shohei YOSHIDA 04a65a56de
Implement 'flutter build target' completion 2023-02-19 18:34:41 +09:00
Shohei YOSHIDA 86d55972f5
Merge pull request #994 from infokiller/fix-tmuxp-custom-dir
tmuxp: fix xdg dir checked
2023-02-08 07:38:05 +09:00
Yoni Weill a2c3a97252 tmuxp: fix xdg dir checked 2023-02-07 16:05:31 +02:00
Shohei YOSHIDA 828fe2bd3c
Merge pull request #993 from infokiller/fix-tmuxp-custom-dir
tmuxp: fix using workspace dirs other than ~/.tmuxp
2023-02-06 19:43:54 +09:00
Yoni Weill e936451b03 tmuxp: fix using workspace dirs other than ~/.tmuxp
For reference see 3ba6426283/src/tmuxp/workspace/finders.py (L99-L128)
2023-02-06 11:54:20 +02:00
Shohei YOSHIDA 874bd4d323
Merge pull request #990 from zsh-users/update-iwyu
Update include-what-you-use completion
2023-01-31 18:41:41 +09:00
Shohei YOSHIDA b07000ca5f Update include-what-you-use completion 2023-01-30 12:52:45 +09:00
Shohei YOSHIDA 3e3e2f97f2
Merge pull request #987 from zsh-users/networkquality
Add networkQuality completion
2023-01-29 22:39:36 +09:00
Shohei YOSHIDA c156a2a548
Merge pull request #989 from zsh-users/improve-flutter-subcommand
Implement flutter pub sub command completions
2023-01-28 12:40:55 +09:00
Shohei YOSHIDA e9191ffa95
Implement flutter pub sub command completions 2023-01-27 22:59:48 +09:00
Shohei YOSHIDA 54156de9cb
Merge pull request #988 from zsh-users/update-flutter-3.7
Update flutter completion for version 3.7
2023-01-26 19:40:19 +09:00
Shohei YOSHIDA 14817f4f11
Update flutter completion for version 3.7 2023-01-26 12:36:37 +09:00
Shohei YOSHIDA 4f5a896b96 Add networkQuality completion 2023-01-25 14:16:30 +09:00
Shohei YOSHIDA dd686f35d1
Merge pull request #985 from vurden/master
Update completion for mix
2023-01-18 19:28:38 +09:00
vurden 865fd86d2e add phx.gen.auth 2023-01-17 22:55:49 -05:00
Shohei YOSHIDA 1204f45161
Merge pull request #982 from zsh-users/fix_broken_completion
Fix broken completion and use awk instead of perl for portability
2023-01-10 11:13:57 +09:00
Shohei YOSHIDA 4ac9173088
Fix broken completion and use awk instead of perl for portability 2023-01-10 10:54:42 +09:00
Shohei YOSHIDA 45d07f79b0
Merge pull request #980 from zsh-users/add-android-commands
Add avdmanager and sdkmanager completion
2023-01-10 10:31:02 +09:00
Shohei YOSHIDA 8c6ffb73e9
Add avdmanager and sdkmanager completion 2023-01-06 23:28:55 +09:00
Shohei YOSHIDA 61e6ab29ba
Merge pull request #976 from zsh-users/add-emacs-completions
Add emacs and emacsclient completion
2023-01-06 12:56:43 +09:00
Shohei YOSHIDA 5310fa6f33
Merge pull request #977 from zsh-users/add-screencapture
Add macOS screencapture command completion
2023-01-06 12:56:26 +09:00
Shohei YOSHIDA 852e1f35b2
Merge pull request #978 from zsh-users/update-scala
Fix broken scala/scalac completion and update to version 3.2.1
2023-01-06 12:56:06 +09:00
Shohei YOSHIDA f178a3b36b
Merge pull request #979 from rex4539/typos
Fix typos
2023-01-05 08:13:17 +09:00
Dimitris Apostolou 1d492c7151
Fix typos 2023-01-04 22:50:35 +02:00
Shohei YOSHIDA 7a3387ed46
Fix broken scala/scalac completion and update to version 3.2.1 2023-01-04 17:43:10 +09:00
Shohei YOSHIDA d368e2a3b8
Add macOS screencapture command completion 2023-01-02 12:51:35 +09:00
Shohei YOSHIDA 3acaeebfcb
Add emacs and emacsclient completion 2022-12-28 14:31:05 +09:00
Shohei YOSHIDA b46602db39
Merge pull request #975 from zsh-users/fix-typo-in-node
Fix typo in node.js completion
2022-12-27 19:26:27 +09:00
Shohei YOSHIDA ed5394d671
Fix typo in node.js completion 2022-12-27 19:13:23 +09:00
Shohei YOSHIDA 0682649330
Merge pull request #974 from zsh-users/update-bundle
Update bundle completion
2022-12-26 11:44:27 +09:00
Shohei YOSHIDA 0491bd2cbe
Update bundle completion
bundle gem --ext option should take language c or rust now
2022-12-26 10:53:54 +09:00
Shohei YOSHIDA 756831c818
Merge pull request #973 from zsh-users/update-sbt
Update sbt completion
2022-12-25 17:10:53 +09:00
Shohei YOSHIDA b3eb781837
Update sbt completion 2022-12-25 16:23:41 +09:00
Shohei YOSHIDA 62e0e74083
Merge pull request #960 from zsh-users/update-virtualbox
Update virtualbox
2022-12-25 14:40:50 +09:00
Shohei YOSHIDA eecf5d5c10
Update author list 2022-12-25 13:19:01 +09:00
Shohei YOSHIDA 2df4d30003
Add dhcpserver subcommand completion 2022-12-25 13:17:38 +09:00
Shohei YOSHIDA 9035bfb0a8
Reduce functions 2022-12-25 13:06:35 +09:00
Shohei YOSHIDA 4c66875a7b
Add hostonlynet subcommand completion 2022-12-25 13:00:17 +09:00
Shohei YOSHIDA 337c43064e
Add hostonlyif subcommand completion 2022-12-25 12:56:22 +09:00
Shohei YOSHIDA 46e5e95405
Add metrics subcommand completion 2022-12-25 12:52:22 +09:00
Shohei YOSHIDA d54db07dd5
Add debugvm subcommand completion 2022-12-25 12:44:18 +09:00
Shohei YOSHIDA fa57596f67
ADd guestcontrol subcommand completion 2022-12-25 12:20:38 +09:00
Shohei YOSHIDA 8d40ac67bf
Add natnetwork subcommand completion 2022-12-25 10:41:20 +09:00
Shohei YOSHIDA a6f3ed2616
Implement sharedfolder subcommand completion 2022-12-24 22:39:10 +09:00
Shohei YOSHIDA 2e02fa2bc4
Add usbdevsource subcommand completion 2022-12-24 22:00:29 +09:00
Shohei YOSHIDA bf30efa147
Merge pull request #972 from zsh-users/add-extpack
Add extpack subcommand completion
2022-12-24 21:36:15 +09:00
Shohei YOSHIDA 793c77ece9
Add extpack subcommand completion 2022-12-24 19:49:05 +09:00
Shohei YOSHIDA 428473bcc5
Merge pull request #971 from zsh-users/add-modifynvram
Add modifynvram subcommand completion
2022-12-24 19:15:14 +09:00
Shohei YOSHIDA a5cc26eee1
Add modifynvram subcommand completion 2022-12-24 18:38:00 +09:00
Shohei YOSHIDA e2aeee4ba5
Merge pull request #970 from zsh-users/add-updatecheck
Add updatecheck subcommand completion
2022-12-24 17:51:00 +09:00
Shohei YOSHIDA 01c0875bb5
Add updatecheck subcommand completion 2022-12-24 17:31:27 +09:00
Shohei YOSHIDA c4c820a54a
Merge pull request #969 from zsh-users/add-usbfilter
Add usbfilter subcommand completion
2022-12-24 16:59:40 +09:00
Shohei YOSHIDA eff72eacf6
Add usbfilter subcommand completion 2022-12-24 15:50:32 +09:00
Shohei YOSHIDA 2c8261ee2f
Merge pull request #968 from zsh-users/add_guestproperty
Add guestproperty subcommand completion
2022-12-24 15:41:41 +09:00
Shohei YOSHIDA 4f8614d0ac
Add guestproperty subcommand completion 2022-12-24 09:27:04 +09:00
Shohei YOSHIDA a7b82b0199
Merge pull request #967 from zsh-users/add-cloud
Add cloud subcommand completion
2022-12-24 08:13:10 +09:00
Shohei YOSHIDA 6ec58b685e
Add cloud subcommand completion 2022-12-23 21:59:58 +09:00
Shohei YOSHIDA 6fe5f8a46a
Merge pull request #966 from zsh-users/add-snapshot
Add snapshot subcommand completion
2022-12-23 21:17:00 +09:00
Shohei YOSHIDA 2228daef0e
Add snapshot subcommand completion 2022-12-23 20:55:17 +09:00
Shohei YOSHIDA a9ae3899b7
Merge pull request #965 from zsh-users/add-unattended
Add unattended subcommand completion
2022-12-23 20:47:07 +09:00
Shohei YOSHIDA 61ccfe353f
Add unattended subcommand completion 2022-12-23 18:13:26 +09:00
Shohei YOSHIDA 38e1989e64
Merge pull request #964 from zsh-users/add-cloudprofile
Add cloudprofile subcommand completion
2022-12-23 16:58:37 +09:00
Shohei YOSHIDA 7aba5946ca
Add cloudprofile subcommand completion 2022-12-23 16:46:30 +09:00
Shohei YOSHIDA 259eec99ba
Merge pull request #963 from zsh-users/add-mediumio
Add mediumio subcommand completion
2022-12-23 15:44:33 +09:00
Shohei YOSHIDA a2d4ea00d9
Add mediumio subcommand completion 2022-12-23 15:28:52 +09:00
Shohei YOSHIDA 317a63bc03
Merge pull request #962 from zsh-users/add-bandwidthctl
Add bandwidthctl subcommand completion
2022-12-23 14:50:35 +09:00
Shohei YOSHIDA 0211e566da
Add bandwidthctl subcommand completion 2022-12-23 14:12:29 +09:00
Shohei YOSHIDA f0af8a58bf
Merge pull request #961 from zsh-users/add-encryptvm
Implement encryptvm subcommand
2022-12-23 14:02:05 +09:00
Shohei YOSHIDA 7ec9280e88
Implement encryptvm subcommand 2022-12-22 21:36:57 +09:00
Shohei YOSHIDA 5ba8f9c405
Merge pull request #959 from zsh-users/virtualbox-setproperty
Add set property completion
2022-12-22 15:36:30 +09:00
Shohei YOSHIDA 021da0cde5
Add set property completion 2022-12-22 14:32:56 +09:00
Shohei YOSHIDA b215131217
Merge pull request #958 from zsh-users/fix-virtualbox
Update virtualbox completion
2022-12-15 22:21:11 +09:00
Shohei YOSHIDA 9a1ec0e9ee
Update virtualbox completion
- Fix broken option completion
- Format
- Update subcommands
- Add TODO comments in unimplemented subcommands
2022-12-14 23:29:37 +09:00
Shohei YOSHIDA 7b8bb64cbb
Merge pull request #955 from zsh-users/clang-tools
Add clang tools completions
2022-12-12 22:46:26 +09:00
Shohei YOSHIDA 12e788f4a5
Merge pull request #957 from zsh-users/update-go-1.20
Update go1.20
2022-12-12 22:45:28 +09:00
Shohei YOSHIDA 07a062b77e
Update go1.20
- add `-C` flag and `-pgo` flag
- remove `-i` flag from `go build` and `go test` because it was removed
2022-12-08 12:54:23 +09:00
Shohei YOSHIDA f9373c96c7
Merge pull request #956 from zsh-users/fix-broken-cmake-boolean-completion
Fix broken boolean parameter completion
2022-12-03 17:21:48 +09:00
Shohei YOSHIDA 10a706d337
Fix broken boolean parameter completion 2022-12-03 13:35:37 +09:00
Shohei YOSHIDA d6e8817991
Add clang-tidy completion 2022-12-03 13:16:02 +09:00
Shohei YOSHIDA 3b0477499e
Add clang-format completion 2022-12-03 13:15:31 +09:00
Shohei YOSHIDA 3d26c20452
Add clang-check completion 2022-12-03 13:15:25 +09:00
Shohei YOSHIDA a09284a734
Merge pull request #953 from zsh-users/update-setcap
Update setcap
2022-11-26 21:08:45 +09:00
Shohei YOSHIDA ccac058058
Merge pull request #954 from zsh-users/update-dhcpcd
Update dhcpcd completion
2022-11-26 21:08:29 +09:00
Shohei YOSHIDA fa0b8386b4
Update dhcpcd completion 2022-11-25 18:54:45 +09:00
Shohei YOSHIDA fc35e4e6c3
Update setcap 2022-11-25 18:15:00 +09:00
Shohei YOSHIDA 59560d43a4
Merge pull request #952 from zsh-users/update_qmk
Update qmk completion
2022-11-25 08:47:52 +09:00
Shohei YOSHIDA 3b7609ad4f
Update qmk completion 2022-11-24 22:37:42 +09:00
Shohei YOSHIDA 92eae00fa1
Merge pull request #951 from zsh-users/update-pixz
Update pixz
2022-11-24 19:00:07 +09:00
Shohei YOSHIDA 2a284cfefa
Update pixz 2022-11-24 17:45:00 +09:00
Shohei YOSHIDA 55a3314a2d
Merge pull request #949 from zsh-users/update-ccache
Update ccache
2022-11-23 16:26:31 +09:00
Shohei YOSHIDA 0439726d19
Merge pull request #950 from zsh-users/remove-zsh-supported-completions
Remove completions that zsh supports itself
2022-11-23 16:26:21 +09:00
Shohei YOSHIDA fc9ff87d12
Remove completions that zsh supports itself 2022-11-23 16:20:14 +09:00
Shohei YOSHIDA 17f57c2b2e
Update ccache 2022-11-23 16:18:02 +09:00
Shohei YOSHIDA e8f1574203
Merge pull request #948 from zsh-users/remove-debuild
Remove _debuild completion
2022-11-23 13:47:47 +09:00
Shohei YOSHIDA b96a310c96
Merge pull request #947 from zsh-users/update-dget
Update dget completion
2022-11-23 13:47:30 +09:00
Shohei YOSHIDA 2b16b33a10
Remove _debuild completion
zsh supports it itself now
2022-11-23 13:45:23 +09:00
Shohei YOSHIDA b263de0778
Update dget completion 2022-11-23 13:35:47 +09:00
Shohei YOSHIDA fddcae4a29
Merge pull request #946 from zsh-users/update-links
Update links
2022-11-23 13:32:56 +09:00
Shohei YOSHIDA 0b6e064850
Update links 2022-11-23 13:31:48 +09:00
Shohei YOSHIDA e6cb409135
Merge pull request #945 from zsh-users/update-conan
Update conan completion
2022-11-23 12:18:32 +09:00
Shohei YOSHIDA 3c49fc1f15
Merge pull request #944 from zsh-users/update-inxi
Update inxi completion
2022-11-23 11:56:18 +09:00
Shohei YOSHIDA 256e21a314
Merge pull request #943 from zsh-users/update-mvn
Update mvn completion
2022-11-23 11:56:08 +09:00
Shohei YOSHIDA 4527ea4c64
Update conan completion 2022-11-23 11:55:08 +09:00
Shohei YOSHIDA 3a9bc83c91
Update inxi completion 2022-11-21 23:59:33 +09:00
Shohei YOSHIDA 92199f20b2
Update mvn completion 2022-11-21 18:47:47 +09:00
Shohei YOSHIDA 6a5b7245be
Merge pull request #942 from zsh-users/update-pm2
Update pm2 completion
2022-11-20 00:08:04 +09:00
Shohei YOSHIDA bffb7ef747
Update pm2 completion 2022-11-19 18:46:28 +09:00
Shohei YOSHIDA 703b877bac
Merge pull request #941 from zsh-users/update-svm
Update svm
2022-11-18 22:34:20 +09:00
Shohei YOSHIDA 141d79e67b
Merge pull request #940 from zsh-users/update-cmake
Update cmake completion
2022-11-18 22:34:03 +09:00
Shohei YOSHIDA 09efd4c547
Merge pull request #939 from zsh-users/remove-force
Remove force completion
2022-11-18 22:33:37 +09:00
Shohei YOSHIDA bec6ca01b1
Merge pull request #938 from zsh-users/refactor-flutter
Refactoring flutter completion
2022-11-18 22:33:15 +09:00
Shohei YOSHIDA 6e7478967f
Merge pull request #937 from zsh-users/update-scrub
Format scrub completion and improve pattern completion
2022-11-18 22:32:41 +09:00
Shohei YOSHIDA 0f4dddf7d8
Update svm 2022-11-18 22:31:36 +09:00
Shohei YOSHIDA df1bba9803
Update cmake completion 2022-11-18 22:25:19 +09:00
Shohei YOSHIDA df4f71fb8c
Remove force completion
Because force command supports to generate zsh completion file itself
2022-11-18 17:46:18 +09:00
Shohei YOSHIDA 6b33831ab3
Refactoring flutter completion
- apply formatting
- remove unused functions
- DRY
2022-11-18 17:16:14 +09:00
Shohei YOSHIDA 8840190985
Format scrub completion and improve pattern completion 2022-11-18 12:17:35 +09:00
Shohei YOSHIDA ba6f1e662e
Merge pull request #934 from zsh-users/update-coffee
Update coffee completion
2022-11-18 11:52:14 +09:00
Shohei YOSHIDA 8052a7ef0b
Merge pull request #935 from zsh-users/remove_vagrant
Remove vagrant
2022-11-18 11:51:57 +09:00
Shohei YOSHIDA 1de72da1df
Merge pull request #936 from zsh-users/remove_perf
Remove perf completion
2022-11-18 11:42:45 +09:00
Shohei YOSHIDA 83842b03d6
Remove perf completion
Because zsh supports perf completion now
2022-11-18 11:32:19 +09:00
Shohei YOSHIDA e001c1e523
Remove vagrant
vagrant supports zsh completion itself now

Reference
- https://developer.hashicorp.com/vagrant/docs/cli#autocompletion
2022-11-18 11:30:20 +09:00
Shohei YOSHIDA b920d83b9a
Update coffee completion 2022-11-18 10:55:27 +09:00
Shohei YOSHIDA 8f55f16f8d
Merge pull request #932 from zsh-users/update-lunchy
Update lunchy completion
2022-11-18 10:43:55 +09:00
Shohei YOSHIDA c6fdfc6cfa
Merge pull request #933 from zsh-users/update-ibus
Update ibus
2022-11-18 10:43:21 +09:00
Shohei YOSHIDA bfe43af637
Update ibus 2022-11-18 00:11:23 +09:00
Shohei YOSHIDA 7483c68a70
Merge pull request #929 from zsh-users/update_lilypond
Update lilypond completion
2022-11-17 20:31:10 +09:00
Shohei YOSHIDA 00dca0baf8
Merge pull request #931 from zsh-users/add-mc-description
Add description of mc command
2022-11-17 20:28:51 +09:00
Shohei YOSHIDA 6f259a706e
Merge pull request #930 from zsh-users/remove-composer
Remove composer
2022-11-17 20:27:38 +09:00
Shohei YOSHIDA e7d3f4c6c6 Update lunchy completion 2022-11-17 19:14:26 +09:00
Shohei YOSHIDA 6569c7df34
Add description of mc command 2022-11-17 17:52:22 +09:00
Shohei YOSHIDA 812d2202c0
Remove composer 2022-11-17 17:38:37 +09:00
Shohei YOSHIDA 3eec22b0f6
Update lilypond completion 2022-11-17 08:38:06 +09:00
Shohei YOSHIDA b293a95465
Merge pull request #927 from zsh-users/update-showoff
Update showoff completion
2022-11-17 08:27:41 +09:00
Shohei YOSHIDA dd7a1378d0
Merge pull request #928 from zsh-users/update-cap
Update Capistrano completion
2022-11-17 08:27:16 +09:00
Shohei YOSHIDA 47e55a8715
Update Capistrano completion 2022-11-17 00:15:43 +09:00
Shohei YOSHIDA 80f7f13d6d
Update showoff completion 2022-11-16 23:53:17 +09:00
Shohei YOSHIDA c41e744e14
Merge pull request #924 from zsh-users/remove-git-journal
Remove git-journal completion
2022-11-16 23:10:37 +09:00
Shohei YOSHIDA da7339b4b2
Merge pull request #923 from zsh-users/update-docpad
Update docpad
2022-11-16 23:09:38 +09:00
Shohei YOSHIDA 100a9171ff
Merge pull request #922 from zsh-users/update-thor
Update thor completion
2022-11-16 23:09:04 +09:00
Shohei YOSHIDA c39f496be3
Merge pull request #921 from zsh-users/update-pygmentize
Update pygmentize completion
2022-11-16 23:08:33 +09:00
Shohei YOSHIDA 710e0c19a6
Merge pull request #925 from zsh-users/update-kak
Update kak completion
2022-11-16 23:07:52 +09:00
Shohei YOSHIDA 789db31745
Merge pull request #926 from zsh-users/remove-sublime-text
Remove subl completion
2022-11-16 23:07:10 +09:00
Shohei YOSHIDA 789054ed27
Remove subl completion
zsh supports Sublime text cli completion now
2022-11-16 20:44:29 +09:00
Shohei YOSHIDA 7cea53d40d
Update kak completion 2022-11-16 20:34:14 +09:00
Shohei YOSHIDA 8c8c42e123
Remove git-journal completion
git-journal supports to generate zsh(and bash) completion file.
And this completion file output is same as its output.
2022-11-16 20:10:07 +09:00
Shohei YOSHIDA d62dcaf896
Update docpad 2022-11-16 19:41:27 +09:00
Shohei YOSHIDA 63a275bc2e
Update thor completion 2022-11-16 16:09:14 +09:00
Shohei YOSHIDA 6de723fd36
Update pygmentize completion 2022-11-16 11:18:01 +09:00
Shohei YOSHIDA 01ff97e2fe
Merge pull request #919 from zsh-users/update-grances
Update glances completion
2022-11-16 09:04:46 +09:00
Shohei YOSHIDA 4fbbe31928
Merge pull request #920 from zsh-users/update_subliminal
Update subliminal completion
2022-11-16 09:04:21 +09:00
Shohei YOSHIDA 3e07b1e030
Update subliminal completion 2022-11-15 23:29:51 +09:00
Shohei YOSHIDA 22f873dc5e
Merge pull request #917 from zsh-users/update-bundle-doc
Update 'bundle clean --force' completion document
2022-11-15 22:33:04 +09:00
Shohei YOSHIDA 645936e055
Update glances completion 2022-11-15 22:31:59 +09:00
Shohei YOSHIDA fd462fc4dc
Merge pull request #918 from kaznovac/patch-1
nvm: remove extra space in exec command description
2022-11-15 21:05:54 +09:00
Marko Kaznovac 4ab4eaea2d
nvm: remove extra space in exec command description 2022-11-15 12:48:19 +01:00
Shohei YOSHIDA 90fc2e1c44
Update 'bundle clean --force' completion document 2022-11-15 11:48:04 +09:00
Shohei YOSHIDA 7916ba50ed
Merge pull request #915 from zsh-users/update-git-revise
Add git-revise completion
2022-11-15 10:38:32 +09:00
Shohei YOSHIDA b0206148f1
Merge pull request #916 from zsh-users/update-rslsync
Update rslsync completion
2022-11-15 10:37:53 +09:00
Shohei YOSHIDA 28070aa9e4
Update rslsync completion 2022-11-14 23:37:58 +09:00
Shohei YOSHIDA c3ff722d2e
Add git-revise completion 2022-11-14 23:23:44 +09:00
Shohei YOSHIDA 45b5a8a78d
Merge pull request #914 from zsh-users/update-rubocop
Update RuboCop completion
2022-11-14 23:17:12 +09:00
Shohei YOSHIDA 2d9d1ffa60
Update RuboCop completion 2022-11-14 13:35:02 +09:00
Shohei YOSHIDA ec65b307c7
Merge pull request #913 from zsh-users/fix-bundle-group
fix bundle group completion
2022-11-14 12:28:01 +09:00
Shohei YOSHIDA 6470db93fb
fix group completion
Original code does not work if multile directories are matched
2022-11-14 00:52:31 +09:00
Shohei YOSHIDA c03ee3f617
Merge pull request #912 from zsh-users/update-teamocil
Update Teamocil
2022-11-14 00:10:29 +09:00
Shohei YOSHIDA 28affc5c80
Update Teamocil 2022-11-13 23:54:30 +09:00
Shohei YOSHIDA 08cff30f4d
Merge pull request #911 from zsh-users/update-nvm
Update nvm completion
2022-11-13 23:44:11 +09:00
Shohei YOSHIDA 27e61dfbaf
Update nvm completion 2022-11-12 21:23:46 +09:00
Shohei YOSHIDA 1db9015d76
Merge pull request #910 from zsh-users/update-gist
Update gist completion
2022-11-11 20:30:55 +09:00
Shohei YOSHIDA d45e52f607
Update gist completion 2022-11-11 11:46:54 +09:00
Shohei YOSHIDA 23e63a98c2
Merge pull request #909 from zsh-users/update-cppcheck
Update cppcheck completion
2022-11-11 10:00:39 +09:00
Shohei YOSHIDA 20edd70f84
Update cppcheck completion 2022-11-10 22:57:27 +09:00
Shohei YOSHIDA 4e63f4566a
Merge pull request #908 from zsh-users/update-bundle
Update bundle zsh completion
2022-11-10 11:43:54 +09:00
Shohei YOSHIDA 6310817eb4
Update bundle zsh completion
And fix some broken completions
2022-11-09 18:43:31 +09:00
Shohei YOSHIDA b736f2679c
Merge pull request #907 from zsh-users/update_afew
Update afew
2022-11-07 23:11:30 +09:00
Shohei YOSHIDA 0913143538
Update afew 2022-11-07 22:39:17 +09:00
Shohei YOSHIDA 52188442a4
Merge pull request #906 from zsh-users/update-httpie
Update httpie completion and reformat code
2022-11-07 18:07:29 +09:00
Shohei YOSHIDA bfc56a2e4c
Update httpie completion and reformat code
- Reformat
- Remove deprecated options
- Add missing candidates of `--style` and `--auth-type`
2022-11-07 16:41:39 +09:00
Shohei YOSHIDA 14da57e8e2
Merge pull request #891 from max-ae/httpie-https
make httpie completion work for both `http` and `https`
2022-11-07 16:16:39 +09:00
Shohei YOSHIDA 1794788d69
Merge pull request #905 from zsh-users/cmake-generator
Extract generators from 'cmake --help'
2022-11-03 14:14:23 +09:00
Shohei YOSHIDA 4bf24327ba
Extract generators from 'cmake --help' 2022-11-02 12:01:16 +09:00
Shohei YOSHIDA 57c868face
Merge pull request #904 from zsh-users/bug/fvm-bsd-sed-issue
Original sed code does not work on BSD sed with BRE
2022-11-01 16:15:28 +09:00
Shohei YOSHIDA 3e46a875d4
Original sed code does not work on BSD sed with BRE 2022-11-01 15:59:07 +09:00
Shohei YOSHIDA b4ec85ede7
Merge pull request #902 from zsh-users/add-fvm
Add fvm completion
2022-10-31 22:21:12 +09:00
Shohei YOSHIDA 1d13f2ad9b
Merge pull request #903 from zsh-users/update-tmuxp
Update tmuxp
2022-10-31 22:20:23 +09:00
Shohei YOSHIDA aedae136e7
Add fvm completion 2022-10-31 18:24:30 +09:00
Shohei YOSHIDA 2dfe3ca220
Update tmuxp 2022-10-30 17:53:46 +09:00
Shohei YOSHIDA 655576f336
Merge pull request #901 from zsh-users/node-v19.0.0
Update node.js completion to 19.0.0
2022-10-19 17:23:34 +09:00
Shohei YOSHIDA 79b3418462
Update node.js completion to 19.0.0 2022-10-19 11:09:06 +09:00
Shohei YOSHIDA 10b46f923a
Merge pull request #895 from Freed-Wu/master
Remove _trash* because trashcli support completion
2022-10-16 22:54:48 +09:00
Shohei YOSHIDA 879f4b6515
Merge pull request #896 from huyz-git/master
Fix nftables completion
2022-10-04 23:15:50 +09:00
test e64e3c2d02 Fix nftables completion 2022-10-04 15:29:19 +08:00
Wu Zhenyu 527c3d3d79 Remove _trash* because trashcli support completion
https://github.com/andreafrancia/trash-cli/blob/master/trashcli/shell_completion.py
2022-09-30 14:36:59 +08:00
Shohei YOSHIDA 57330ba11b
Merge pull request #894 from selfish/add-direnv-completion
Add Direnv completion
2022-09-21 00:27:10 +09:00
Nitai J. Perez 6a33c3f666 Add Direnv completion 2022-09-19 14:39:54 +03:00
Shohei YOSHIDA acd4de5268
Merge pull request #893 from BreakbeatTechnology/usegrepemode
Utilize grep -E instead of deprecated/obsolescent egrep
2022-09-13 09:54:41 +09:00
rtisdale e6fdabb97d Utilize grep -E instead of deprecated/obsolescent egrep 2022-09-12 17:51:37 +02:00
Max Eisner c1de68a88f
make httpie completion work for both `http` and `https` 2022-09-09 14:36:46 +02:00
Shohei YOSHIDA 53f2eab090
Merge pull request #888 from zsh-users/fix-typo
Fix node completion typo
2022-08-29 16:28:41 +09:00
Shohei YOSHIDA 11ad45a66e
Fix node completion typo 2022-08-29 16:15:23 +09:00
Shohei YOSHIDA 9571c507f4
Merge pull request #887 from zsh-users/node-update
Update node.js options
2022-08-29 14:03:20 +09:00
Shohei YOSHIDA 87f190da85
Update node.js options 2022-08-29 12:30:52 +09:00
Julien Nicoulaud f360827b88
Merge pull request #846 from syohex/issue845
Remove _tarsnap
2022-08-13 19:50:53 +02:00
Shohei YOSHIDA b131623ee4
Merge pull request #884 from zsh-users/cmake-3.24
Update cmake options for version 3.24
2022-08-11 16:54:17 +09:00
Shohei YOSHIDA ae63b5ae41
Update cmake options for version 3.24 2022-08-10 16:16:59 +09:00
Shohei YOSHIDA 85a0874060
Merge pull request #883 from zsh-users/go-env-completion
Update go environment variable completion
2022-08-10 12:14:19 +09:00
Shohei YOSHIDA 88b284dc6d
Update go environment variable completion 2022-08-10 10:07:48 +09:00
Shohei YOSHIDA b5ba0051dc
Merge pull request #882 from zsh-users/go1.19
Update for go 1.19
2022-08-07 23:17:01 +09:00
Shohei YOSHIDA 40c1e44216
Update for go 1.19
'tool compile' no longer accepts '-importmap'
2022-08-07 12:04:22 +09:00
Shohei YOSHIDA 11258bcd48
Merge pull request #881 from nolange/fix_cmake_presets
_cmake: fix cmake presets for real
2022-07-19 22:49:38 +09:00
Norbert Lange 061f09cd53 _cmake: fix cmake presets for real
support presets without descriptions, and modify the commandline
to add --list-presets at the end.

Improve how cmake presets are listed, should be more robust
in regards to quoting.
2022-07-19 13:59:06 +02:00
Shohei YOSHIDA 073379d908
Merge pull request #880 from zsh-users/update-nano
Update nano completion
2022-07-06 15:47:02 +09:00
Shohei YOSHIDA 7f84f65d60
Update nano completion 2022-07-06 00:07:15 +09:00
Shohei YOSHIDA 0331b2908f
Merge pull request #879 from zsh-users/update-jmeter
Update jmeter options
2022-07-02 18:09:41 +09:00
Shohei YOSHIDA cc2df4217e
Update jmeter options 2022-07-02 15:44:11 +09:00
Shohei YOSHIDA f193f0d4fb
Merge pull request #878 from zsh-users/go-test-flags
Add go 1.18 test flags
2022-07-02 00:57:40 +09:00
Shohei YOSHIDA 12a73d0200
Add go 1.18 test flags
And fix some typo
2022-07-02 00:55:29 +09:00
Shohei YOSHIDA 07c37ce8c4
Merge pull request #873 from zsh-users/update-httpie
Update httpie completion
2022-06-20 01:38:36 +09:00
Shohei YOSHIDA fc517dd8ad
Update httpie completion 2022-06-19 23:51:20 +09:00
Shohei YOSHIDA f230d3cf81
Merge pull request #871 from zsh-users/update-tox
Update tox options
2022-06-18 22:31:48 +09:00
Shohei YOSHIDA bacf79fc34
Update tox options 2022-06-18 22:17:51 +09:00
Shohei YOSHIDA dd45d21d06
Merge pull request #870 from seankhliao/go1.18
go: update completions for 1.18
2022-06-17 12:07:32 +09:00
Sean Liao af030b381f
fix typos
Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
2022-06-17 03:53:10 +01:00
Sean Liao 6f407f5287
update completions for 1.18 2022-06-16 20:27:29 +01:00
Shohei YOSHIDA 45cb3becd8
Revert "Merge pull request #868 from ibayramli2001/fig"
This reverts commit 263c14d969, reversing
changes made to fcf490292e.
2022-06-17 01:21:11 +09:00
Shohei YOSHIDA 263c14d969
Merge pull request #868 from ibayramli2001/fig
Add Fig as an installation method to the README
2022-06-16 12:35:44 +09:00
Ilkin Bayramli 28ef391e35
Add Fig as an installation method to the README 2022-06-15 19:02:46 -07:00
Shohei YOSHIDA fcf490292e
Merge pull request #867 from zsh-users/flutter3
Update to flutter3
2022-06-14 22:44:56 +09:00
Shohei YOSHIDA 63d333ce88
Update to flutter3 2022-06-14 19:55:33 +09:00
Shohei YOSHIDA 2e3c3f6cf0
Merge pull request #863 from ninedotnine/danso/trash-d
Add completion for trash-d
2022-05-23 09:04:36 +09:00
dan soucy 14de4f5b13
Add completion for trash-d
https://github.com/rushsteve1/trash-d

trash-d is an implementation of the FreeDesktop trash bin
designed to be a drop-in replacement for `rm`.

This completion conflicts with trash-cli,
as both projects name their main executable `trash`.
2022-05-22 18:00:45 -04:00
Shohei YOSHIDA 7a72511f7b
Merge pull request #862 from kyanagi/bundle-add-commands
Added add, binstubs, clean, doctor, remove commands to bundler completions
2022-05-10 19:06:00 +09:00
Kouhei Yanagita 19b03c3b2d Added add, binstubs, clean, doctor, remove commands to bundler completions 2022-05-10 17:56:19 +09:00
Shohei YOSHIDA ca484eac40
Merge pull request #861 from saeltz/patch-1
Drop unsupported git protocol from Readme
2022-04-26 18:31:58 +09:00
Bendix Sältz 20b3e087fd
Drop unsupported git protocol from Readme
When trying to clone the repository, git complained with:
```
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
```

Using HTTPS in the URL works just fine.
2022-04-26 11:21:01 +02:00
Shohei YOSHIDA 00a7cc2200
Merge pull request #859 from zsh-users/node-v18
Update node-v18
2022-04-20 15:41:18 +09:00
Shohei YOSHIDA 03731671e3
Update node-v18 2022-04-20 12:51:48 +09:00
Shohei YOSHIDA 3d394ebaa1
Merge pull request #858 from zsh-users/update-node
Update node.js options
2022-04-11 10:05:55 +09:00
Shohei YOSHIDA ac3e08c9d4
Update node.js options 2022-04-10 23:22:38 +09:00
Shohei YOSHIDA 6db5ddc655
Merge pull request #857 from Freed-Wu/hello
Add completion for hello
2022-04-01 16:40:21 +09:00
Freed-Wu 4371e1a831 Add completion for hello 2022-04-01 11:28:41 +08:00
Shohei YOSHIDA 55d07cc577
Merge pull request #854 from sh-cho/patch-1
Add install guide with zinit
2022-03-04 10:06:32 +09:00
Seonghyeon Cho 3933b18fb3
Add install guide with zinit 2022-03-04 01:01:25 +09:00
Shohei YOSHIDA 51a663f0d6
Merge pull request #853 from syohex/issue-852
Don't complete if here is not git repository
2022-03-04 00:15:34 +09:00
Shohei YOSHIDA e17d424462
Don't complete if here is not git repository 2022-03-03 23:50:33 +09:00
Shohei YOSHIDA 6fbf5fc9a7
Merge pull request #850 from syohex/pr-849
Rewrite #849 in Perl for portability
2022-02-24 15:34:45 +09:00
Shohei YOSHIDA d9e81e08f2
Rewrite JSON parsing code in Perl for portability 2022-02-24 15:04:47 +09:00
Huw Percival ff6031a8ea re-write to use python, hopefully this is portable enough, tested with python 3.6.5 anf 2.7.18 2022-02-23 10:40:29 +00:00
Shohei YOSHIDA fa5a3843f4
Merge pull request #848 from lukaszmoroz/fix/remove_cheat
Remove cheat completions
2022-02-23 09:45:25 +09:00
Huw Percival b34650ea31 fix presets 2022-02-22 16:36:35 +00:00
Łukasz Moroz 83d9ea9218 Remove cheat completions 2022-02-22 15:48:43 +01:00
Julien Nicoulaud 3fb84ee9cc
Merge pull request #844 from felipecrs/patch-1
Improve OMZ installation instructions
2022-02-14 16:50:10 +01:00
Shohei YOSHIDA 530ee90b48
Remove _tarsnap
because it provides the zsh completion file now
2022-02-13 18:30:50 +09:00
Felipe Santos 81cd07bb9e
Improve OMZ installation instructions 2022-02-12 14:37:11 -03:00
Shohei YOSHIDA 298020e4e3
Merge pull request #842 from dark-panda/add-pg-completions
Add additional PostgreSQL completions for 13+ and reorganize
2022-01-28 11:09:24 +09:00
J Smith 406167058b Add additional PostgreSQL completions for 13+ and reorganize 2022-01-27 18:23:03 -04:00
Shohei YOSHIDA 1f1962e867
Merge pull request #841 from paaguti/master
Add initial natnetwork handling to virtualbox
2022-01-26 08:54:25 +09:00
Pedro A. Aranda Gutierrez 2c3b218d24 Add list natnets and natnetwork option 2022-01-25 19:58:48 +01:00
Pedro A. Aranda Gutierrez b3469afc24 Add initial support for natnetwork subcommand 2022-01-25 17:31:53 +01:00
Pedro A. Aranda Gutierrez c83b6a505b Add function to list natnetworks 2022-01-25 17:30:35 +01:00
Pedro A. Aranda Gutierrez f20a81f813 Add (unCamelised) vboxmanage for Linux 2022-01-25 17:29:23 +01:00
Shohei YOSHIDA 546fa7e5bb
Merge pull request #837 from seivan/patch-1
git-flow: Adding description to be picked up.
2022-01-18 09:29:12 +09:00
Seivan 97093ddac6
git-flow: Adding description to be picked up.
Will describe what flow is, as a git sub command.
2022-01-17 17:44:56 +01:00
Shohei YOSHIDA 20f3cd5f5d
Merge pull request #836 from syohex/colon-script
Fix script completion which contains colons
2022-01-06 20:39:22 +09:00
Shohei YOSHIDA 1b1b0c7c8f
Fix script completion which contains colons 2022-01-06 19:47:55 +09:00
Shohei YOSHIDA bffff37c3e
Merge pull request #834 from syohex/issue833
Fix perl one liner bug
2021-12-30 12:12:53 +09:00
Shohei YOSHIDA d84a6d3b21
Fix perl one liner bug
decode_json returns hash reference, so scalar variable should be
used instead of hash variable.
2021-12-30 11:51:55 +09:00
Shohei YOSHIDA b3876c5982
Merge pull request #830 from syohex/issue-829
Fix issue when package.json is not in current directory
2021-12-21 23:54:32 +09:00
Shohei YOSHIDA da037c4ba7
Fix issue when package.json is not in current directory 2021-12-21 23:52:30 +09:00
Shohei YOSHIDA e4090f1baa
Merge pull request #827 from syohex/issue-802
Update collect workspaces command
2021-12-11 12:27:14 +09:00
Shohei YOSHIDA 790890e256
Fix no node_modules case 2021-12-09 19:44:11 +09:00
Shohei YOSHIDA 839df66922
Don't use yarn run --json for newer yarn 2021-12-09 01:37:29 +09:00
Shohei YOSHIDA 2f54f2b212
Support both older and newer versions 2021-12-08 00:19:46 +09:00
Shohei YOSHIDA c6bce7358c
Update collect workspaces command 2021-12-07 23:06:33 +09:00
Shohei YOSHIDA 1a0808696c
Merge pull request #825 from MunifTanjim/fix-entrypoint
fix: entrypoint fpath expansion
2021-12-01 15:21:22 +09:00
Munif Tanjim ac3ceba238 fix: entrypoint fpath expansion 2021-12-01 12:08:52 +06:00
Shohei YOSHIDA 536bd1d3d4
Merge pull request #824 from midchildan/update/knife
knife: improve completion
2021-11-30 09:54:55 +09:00
midchildan 1f5e5ff471
knife: improve completion for Chef Vault commands 2021-11-30 00:52:28 +09:00
midchildan 392487b0fa
knife: improve code quality
- Quote variables
- Remove unnecessary subshells
- Use local variables
- Unify _chef_*s_remote functions
- Prefix auxillary functions with _knife_*
- Use _call_program when invoking the knife command to silence stderr
  output
2021-11-29 21:58:53 +09:00
midchildan da42a24a07
knife: backport #531 and #131 2021-11-19 00:15:06 +09:00
midchildan b5de3d53e0
knife: sync with oh-my-zsh 2021-11-19 00:02:10 +09:00
Vadim A. Misbakh-Soloviov a1a11caf4f
Merge pull request #823 from rex4539/typos
Fix typos
2021-11-13 01:29:48 +03:00
Dimitris Apostolou 0fd25cda7a
Fix typos 2021-11-12 23:56:34 +02:00
Shohei YOSHIDA bebaa6126e
Merge pull request #819 from turboBasic/master
Update ccache completions
2021-09-16 07:20:30 +09:00
andriy melnyk ╔╬═╚╗╠ ╠╣╔╦╣╚╗ ╔╬╗╚╗╚╝ cd18e471bb
Update ccache completions 2021-09-15 20:03:44 +03:00
Shohei YOSHIDA 32732916a0
Merge pull request #816 from okapia/combine-rmlint
combine _rmlint.sh into _rmlint
2021-08-27 18:38:40 +09:00
Oliver Kiddle 99a6b6cb6e combine _rmlint.sh into _rmlint
The usual zsh approach is one function switching on $service
and the .sh extension seems to cause some people problems with
their setups.
2021-08-27 11:14:17 +02:00
Shohei YOSHIDA f52061cd68
Merge pull request #815 from yut23/patch-1
xinput: escape colons in device names
2021-08-24 08:54:03 +09:00
Eric Johnson b49f300934
xinput: escape colons in device names
The completion menu breaks if any device names have colons in them, as colons are used to separate completion matches from their descriptions.
2021-08-23 18:39:34 -04:00
Shohei YOSHIDA 394239d746
Merge pull request #812 from undg/openvpn3-upstream
Completion for openvpn3.
2021-08-14 09:55:13 +09:00
und3rdg ae82a1efae Lowercase variables. 2021-08-13 22:42:29 +01:00
und3rdg 00b5130b26 Globals are bad! keep var's local, nice and cozzy. 2021-08-12 22:21:16 +01:00
und3rdg 8ed1a90bde Completion for openvpn3. 2021-08-11 18:43:45 +01:00
Shohei YOSHIDA d4511c2365
Merge pull request #808 from oxiedi/rmlint
Add completion for rmlint
2021-07-19 19:11:51 +09:00
oxiedi f996cf93ed Add completion for rmlint 2021-07-19 12:35:04 +05:00
Shohei YOSHIDA a736cfe8e5
Merge pull request #805 from undg/qmk
Autocompletion for qmk.
2021-06-28 19:48:34 +09:00
und3rdg 5025527880 new completion for QMK CLI 2021-06-28 07:29:25 +01:00
nicoulaj 9dfd5c6670
Merge pull request #774 from simnalamburt/mssh-errorhandling
_mssh: Handle error cases more gracefully
2021-05-03 19:28:33 +02:00
Shohei YOSHIDA 11ad0a45ff
Merge pull request #800 from maniac-en/pr/gist_update
gist -u or gist --update will auto-complete user gists
2021-05-02 23:50:46 +09:00
maniac c4b8c83315
gist -u or gist --update will auto-complete user gists
This commit will help the user to easily update their existing gist
using zsh auto-completion rather than going to github and then
extracting the required gist hash/URL

Note: This commit effects the working of file: `src/_gist`
2021-05-02 19:24:38 +05:30
okapia e14d47010a
Merge pull request #799 from syohex/license
fix license
2021-04-30 08:16:29 +02:00
Shohei YOSHIDA 876e972fe0 fix license 2021-04-30 12:56:12 +09:00
Shohei YOSHIDA 773ead6ea7
Merge pull request #798 from kugland/master
completions for lilypond (https://lilypond.org/)
2021-04-25 12:30:25 +09:00
André Kugland 67ced04c7f
completions for lilypond 2021-04-24 02:45:29 -03:00
Shohei YOSHIDA 252c7a995b
Merge pull request #795 from kugland/master
changed "(%)" to "(percent)" in optarg descriptions
2021-04-23 10:22:21 +09:00
André Kugland 78fb97c24d
changed "(%)" to "(percent)" in optarg descriptions 2021-04-22 18:58:03 -03:00
Shohei YOSHIDA d7959bb716
Merge pull request #794 from syohex/pr-793
Add license header to #793
2021-04-21 09:51:33 +09:00
Shohei YOSHIDA fea56d1a7b Add zsh license header 2021-04-21 09:45:28 +09:00
André Kugland 57ba534a6a
added appropriate opts for _arguments 2021-04-19 16:57:12 -03:00
André Kugland d930094f84
fixed issues raised in the review 2021-04-19 16:43:00 -03:00
Shohei YOSHIDA 901a787b2d
Merge pull request #792 from kugland/master
added completions for opus-tools (opusenc, opusdec & opusinfo)
2021-04-19 11:56:44 +09:00
André Kugland b65eb5d64e
added completions for opus-tools (opusenc, opusdec & opusinfo) 2021-04-18 23:00:47 -03:00
Oliver Kiddle cb4b721ada Add exclusion lists to nano completion 2021-04-12 23:53:05 +02:00
okapia 43fecdfe87
Merge pull request #790 from FederAndInk/fix/functions_tests
fix (( $+functions[_f] )) || _f()
2021-04-08 16:36:21 +02:00
Ludovic Jozeau 98cb234270
fix (( $+functions[_f] )) || _f()
checked with: "\(\( \$\+functions\[(.*)\] \)\) \|\|\n(?!\1)"
2021-04-08 15:50:39 +02:00
Shohei YOSHIDA f0c856912c
Merge pull request #789 from syohex/add-table-of-contents
Add table of contents
2021-03-23 15:27:54 +09:00
Shohei YOSHIDA cec348209c Add table of contents 2021-03-23 14:33:20 +09:00
Shohei YOSHIDA 788926ffba
Merge pull request #787 from marlonrichert/patch-1
Remove deprecated `-$` option
2021-03-22 20:17:17 +09:00
Marlon Richert 24834255e9
Remove deprecated `-$` option 2021-03-22 12:21:08 +02:00
Shohei YOSHIDA f1ab6110ce
Merge pull request #786 from ajvondrak/patch-1
Autocomplete files for mix run
2021-03-17 10:05:13 +09:00
Alex Vondrak b152a4901f
Autocomplete files for mix run
Previously, `mix run <tab>` would not expand into anything, even though the [`mix run`](https://hexdocs.pm/mix/Mix.Tasks.Run.html) task accepts filenames as inputs. This commit collapses the growing list of such cases (`test`, `format`, `run`) into one clause that autocompletes files.

Although `mix run` accepts several different `--flags`, the autocompletion isn't currently set up to deal with subcommands' specific options, so I'm punting on that part.
2021-03-16 13:44:40 -07:00
Shohei YOSHIDA aa98bc593f
Merge pull request #784 from Z5483/shellcheck
add 'shellcheck' completion
2021-03-01 09:32:03 +09:00
Khue Nguyen 23ce4b9085 add 'shellcheck' completion 2021-02-28 06:44:59 -05:00
Shohei YOSHIDA 322d5f24f7
Merge pull request #783 from syohex/go-1.16
Add new flags which are introduced at Go 1.16
2021-02-25 17:54:02 +09:00
Shohei YOSHIDA d16c8aea54 Add new flags which are introduced at Go 1.16 2021-02-25 11:32:20 +09:00
Shohei YOSHIDA c7baec49d3
Merge pull request #782 from davidhcefx/master
Update nano to version 5.4
2021-02-11 09:04:59 +09:00
davidhcefx 37a9a485ee update nano to version 5.4 2021-02-11 02:51:33 +08:00
Shohei YOSHIDA 6fe9995fd9
Merge pull request #781 from ScoreUnder/add-gpgconf
Add completion for gpgconf
2021-02-05 08:45:03 +09:00
Score_Under 4c5a8ef41e
Add license notice to _gpgconf 2021-02-04 15:48:07 +00:00
Score_Under ab80ddd379
Shorter perl one-liner in _gpgconf 2021-02-04 14:45:30 +00:00
Score_Under a1d53f8824
Add missing homedir option to _gpgconf 2021-02-04 14:41:16 +00:00
Score_Under c90c27f8fc
Add completion for gpgconf 2021-02-04 13:20:36 +00:00
Shohei YOSHIDA b8cc3b9b67
Merge pull request #777 from dancek/patch-1
udisksctl: fix paths with a colon
2021-01-19 00:31:01 +09:00
Hannu Hartikainen 19a412373f
udisksctl: fix paths with a colon
For paths such as `/dev/disk/by-id/usb-JetFlash_Transcend_64GB_15AFGA849642-0:0`, `_describe` parses the colon as field separator. This results in wrong completions and the general feeling that udisksctl is broken because it won't mount my pendrive.

Since the output of `udisksctl complete` is (apparently) just a list of paths, it's safe to escape all colons with a backslash.
2021-01-18 10:13:44 +00:00
Shohei YOSHIDA 00c7e28e4a
Merge pull request #776 from askebm/cmake-targets-fix
Use correct makefile for target completion
2021-01-16 19:26:12 +09:00
Aske Bækdal Møller 3511fb04db Use correct makefile for target completion 2021-01-16 10:37:26 +01:00
nicoulaj 244cbfc832
Merge pull request #775 from brainplot/openssl-fix
Fix completion of cipher algorithms
2021-01-03 18:41:18 +01:00
Gianluca Recchia 17d92b0a8e
Fix completion of cipher algorithms 2021-01-03 16:31:19 +01:00
Hyeon Kim 5922465d53
_mssh: Handle error cases more gracefully
1.  Do nothing when there's no AWS CLI
2.  Print error message gracefully if AWS CLI failed
2020-12-31 17:27:10 +09:00
Shohei YOSHIDA 9def41ae64
Merge pull request #773 from simnalamburt/mssh
Add 'mssh' completion
2020-12-31 00:36:40 +09:00
Hyeon Kim 7a4574cd45
_mssh: Add a license header 2020-12-30 20:03:56 +09:00
Hyeon Kim 43a6b81308
Add 'mssh' completion
mssh is a Python client for accessing EC2 instances via AWS EC2 Instance
Connect.

References:
  https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html#ec2-instance-connect-connecting-ec2-cli
  https://github.com/aws/aws-ec2-instance-connect-cli
  https://pypi.org/project/ec2instanceconnectcli/
2020-12-30 17:02:50 +09:00
nicoulaj 44c5bce312
Merge pull request #711 from kanashimia/master
Update stack completions as in the current version 2.3.0.1
2020-12-27 16:41:58 +01:00
nicoulaj 118cc8b544
Merge pull request #772 from nolange/cmake_improvements
CMake improvements and fixes, synced to version 3.19
2020-12-27 16:33:23 +01:00
Norbert Lange 6dff9453ca CMake: note myself as additional author 2020-12-25 23:50:13 +01:00
Norbert Lange 19e65b20dd CMake: udpate generators list 2020-12-25 23:34:56 +01:00
Norbert Lange f5d179b0b5 CMake: Major update to options, adapted to 3.19
Now listed in the same order as the builtin help (CMake 3.19),
for easier audit in the feature.

Commands and descriptions updated.

Support for listing presets.

Use this command to create output for comparison
(not 100% exact obviously):

cmake --help |
  sed -n "s,^ *\(--*[^= ]*\).* = *\([^=]*\),    '\1[\2]',p" |
  sed 's,\.],],'
2020-12-25 23:05:51 +01:00
Norbert Lange 7246533baa CMake: add -E command completions 2020-12-25 22:21:49 +01:00
Norbert Lange 990e604652 CMake: Completely overhaul help command completions
Several argument names where wrong,
completed all available -list functions,
escape brackets in the list, etc.
2020-12-25 22:18:42 +01:00
Norbert Lange 2dc84783fe CMake: Turn some property values into local arrays
Update C/C++ Standards supported aswell
2020-12-25 22:11:49 +01:00
Norbert Lange 63b470243b CMake: fix option completion after first argument
for some reason this just ended after the first option.
2020-12-25 21:57:24 +01:00
Shohei YOSHIDA 2e009c7ab8
Merge pull request #764 from syohex/syohex/remove-flameshot
Remove flameshot completion
2020-09-29 10:58:52 +09:00
Shohei YOSHIDA 2d5a8a3ef1 Remove flameshot completion
It is provided from original project now
2020-09-23 14:39:32 +09:00
Shohei YOSHIDA 454d236d3a
Merge pull request #752 from pseyfert/go1.15
prepare go 1.15
2020-09-01 12:12:00 +09:00
Shohei YOSHIDA 17ba32f8e2
Merge pull request #757 from syohex/syohex/update-nano
Update nano completion
2020-08-11 11:24:43 +09:00
Shohei YOSHIDA 55026f8ed9 Update nano completion
Add '-u', '--unix' flag
2020-08-10 13:17:28 +09:00
Shohei YOSHIDA 4407a48b96
Merge pull request #756 from lwhsu/freebsd
Add package information of FreeBSD
2020-08-05 14:36:43 +09:00
Li-Wen Hsu 84c523505e
Add package information of FreeBSD 2020-08-05 11:58:45 +08:00
Shohei YOSHIDA c6621bb692
Merge pull request #754 from kamleshkc2002/flutter
Update new completions for Flutter
2020-07-21 11:58:34 +09:00
Kamlesh 31c76d90a7 incporporated code review comments
incporporated code review comments from @syohex
2020-07-20 22:38:46 -04:00
Kamlesh 231db68806 Update new completions for Flutter
closes https://github.com/zsh-users/zsh-completions/issues/682

Add new completions for the Flutter CLI
2020-07-20 00:13:15 -04:00
Shohei YOSHIDA 16b89473a7
Merge pull request #753 from syohex/syohex/update-node
Update node flags
2020-07-18 19:01:21 +09:00
Shohei YOSHIDA afcaccd3ca Update node flags 2020-07-17 22:16:36 +09:00
Paul Seyfert 74a316cca8 prepare go 1.15 2020-06-17 22:22:01 +02:00
Shohei YOSHIDA 3b247d3071
Merge pull request #749 from arp242/psqlrc
pgsql: add -X to psql commands to prevent loading ~/.psqlrc
2020-06-03 14:24:46 +09:00
Shohei YOSHIDA 3eea79e9e6
Merge pull request #748 from arp242/pg_config
pgsql: Check for pg_config existence
2020-06-03 14:23:50 +09:00
Martin Tournoij 76efcab2f9
pgsql: Check for pg_config existence
pg_config isn't installed by default on many systems, and is usually
part of postgresql-libs-devel or some such, leading to needless
"pg_config not found" errors on completion.
2020-06-03 12:33:45 +08:00
Martin Tournoij f371431619
pgsql: add -X to psql commands to prevent loading ~/.psqlrc
The ~/.psqlrc may alter the output. In particular, I have '\timing on'
in there to add timings. This is useful when using psql, but not when
relying on it in scripts.

For example:

    psql -Aqt -c "select n.nspname \
        from pg_catalog.pg_namespace n \
        where n.nspname "'!~'" '^pg_' \
          and n.nspname <> 'information_schema' \
        order by 1;" postgres 2>/dev/null

Gives the output:

    public
    Time: 1.882 ms

Whereas with -X it gives the standard output:

    public
2020-06-03 11:40:37 +08:00
Shohei YOSHIDA cfb2dc47db
Merge pull request #747 from okuramasafumi/nanoc-completion
Add completion for nanoc
2020-05-28 08:01:03 +09:00
OKURA Masafumi 0bd08521f9 Add completion for nanoc
nanoc is a static site generator written in Ruby.
Website for nanoc is here: https://nanoc.ws/
2020-05-28 07:47:52 +09:00
Shohei YOSHIDA 786d0f5758
Merge pull request #746 from syohex/syohex/745
Move comment line for avoiding completion error
2020-05-27 23:11:23 +09:00
Shohei YOSHIDA ae19ab20f5 Move comment line for avoiding completion error 2020-05-27 23:07:34 +09:00
Shohei YOSHIDA d3c3df0f2e
Merge pull request #744 from syohex/syohex/update-vnstat
Update vnstat completion
2020-05-27 09:54:48 +09:00
Shohei YOSHIDA 787ea7a719 Update vnstat completion 2020-05-27 08:49:43 +09:00
Shohei YOSHIDA ed4ff5384b
Merge pull request #743 from syohex/syohex/update-rspec-format
Update rspec format option candidates
2020-05-26 11:48:38 +09:00
Shohei YOSHIDA 23614ea318 Update rspec format option candidates 2020-05-26 11:20:50 +09:00
Shohei YOSHIDA d0a060841d
Merge pull request #742 from syohex/syohex/update-ffind
Update ffind completion
2020-05-26 07:58:27 +09:00
Shohei YOSHIDA 6daa0849e2 Update ffind completion 2020-05-26 07:38:59 +09:00
Shohei YOSHIDA 47ee32aa2e
Merge pull request #741 from syohex/syohex/fail2ban-client-metadata
Add license header and metadata and fix typo
2020-05-26 00:32:20 +09:00
Shohei YOSHIDA c13c3ce7f8 Add license header and metadata and fix typo 2020-05-25 23:32:47 +09:00
Shohei YOSHIDA a2fa9788b6
Merge pull request #740 from syohex/pr-665
Cleanup #665
2020-05-25 23:29:37 +09:00
Shohei YOSHIDA c69a1a00a1
Merge pull request #675 from xdch47/master
Add completion for fail2ban-client
2020-05-25 23:29:19 +09:00
Felix Neumärker b7bc314a82
Add completion for fail2ban-client 2020-05-25 15:12:01 +02:00
Shohei YOSHIDA c65ddb6621 Improve mc completion
- Add license header
- improve file completions
- update new options
2020-05-25 20:44:45 +09:00
Shohei YOSHIDA 582c6f3454
Merge pull request #739 from syohex/syohex/update-nano
Update nano completion
2020-05-25 20:21:02 +09:00
Shohei YOSHIDA b43531a749 Update nano completion 2020-05-25 16:18:46 +09:00
Shohei YOSHIDA 5ab4025cc5
Merge pull request #738 from syohex/syohex/update-httpie
Update httpie completion
2020-05-25 08:52:32 +09:00
Shohei YOSHIDA 7a23291f66 Update httpie completion 2020-05-25 08:21:51 +09:00
Shohei YOSHIDA 013f6ac258
Merge pull request #737 from syohex/pr-683
Squash #683 and add file local variables
2020-05-17 22:00:32 +09:00
Shohei YOSHIDA bbfdc2635a Add file local variables for _golang 2020-05-17 21:27:32 +09:00
Paul Seyfert 815f3808a0 Update to go 1.14 2020-05-17 21:25:54 +09:00
Shohei YOSHIDA 346c1a38e5
Merge pull request #736 from syohex/syohex/perf-script
Implement 'perf script' completion
2020-05-16 11:21:53 +09:00
Shohei YOSHIDA 836d9e27bb Implement 'perf script' completion
and fix typos
2020-05-16 11:16:29 +09:00
Shohei YOSHIDA 8a47b2dd97
Merge pull request #735 from syohex/syohex/perf-sched
Implement 'perf sched' completion
2020-05-16 00:45:38 +09:00
Shohei YOSHIDA cafbd76037 Implement 'perf sched' completion 2020-05-16 00:23:52 +09:00
Shohei YOSHIDA bb61ca2a97
Merge pull request #734 from syohex/syohex/perf-kmem
Update 'perf kmem' completion
2020-05-15 23:37:26 +09:00
Shohei YOSHIDA 9db043ca96 Update 'perf kmem' completion 2020-05-15 23:19:56 +09:00
Shohei YOSHIDA ce6e7b8f89
Merge pull request #733 from zchrissirhcz/master
support cmake --install related options
2020-05-15 21:46:14 +09:00
Zhuo Zhang 07c5f46eea support cmake --install related options 2020-05-15 15:55:59 +08:00
Shohei YOSHIDA d2e61b4f4a
Merge pull request #732 from syohex/syohex/perf-trace
Implement perf trace
2020-05-15 09:36:58 +09:00
Shohei YOSHIDA fe8e9a0d29 Implement perf trace 2020-05-15 09:29:56 +09:00
Shohei YOSHIDA 8e04c962d0
Merge pull request #731 from syohex/syohex/perf-lock
Implement 'perf lock' completion
2020-05-15 08:36:01 +09:00
Shohei YOSHIDA ba0cc35915 Implement 'perf lock' completion 2020-05-15 08:03:23 +09:00
Shohei YOSHIDA 6b3869cd32
Merge pull request #730 from syohex/syohex/perf-bench
Implement 'perf bench' subsystem and suite completion
2020-05-14 21:54:07 +09:00
Shohei YOSHIDA ab17b682be Implement 'perf bench' subsystem and suite completion 2020-05-14 21:12:03 +09:00
Shohei YOSHIDA af2e596fa8
Merge pull request #729 from syohex/syohex/perf-timechart
Update 'perf timechart' completion
2020-05-14 09:45:02 +09:00
Shohei YOSHIDA 8b7e37acce Update 'perf timechart' completion 2020-05-14 09:30:24 +09:00
Shohei YOSHIDA bb23316a9f
Merge pull request #728 from syohex/syohex/perf-report
Implement 'perf report' completion
2020-05-13 23:47:06 +09:00
Shohei YOSHIDA ffaa7d5b67 Implement 'perf report' completion 2020-05-13 23:14:40 +09:00
Shohei YOSHIDA 7efa6b7987
Merge pull request #727 from syohex/syohex/perf-record
Implement 'perf record' completion
2020-05-13 10:03:47 +09:00
Shohei YOSHIDA 769585ecb3 Implement 'perf record' completion 2020-05-13 09:30:08 +09:00
Shohei YOSHIDA c66b651f1f
Merge pull request #726 from syohex/syohex/perf-data
Implement perf data completion
2020-05-13 00:01:04 +09:00
Shohei YOSHIDA 2c2cc6cc43 Implement perf data completion 2020-05-12 23:54:47 +09:00
Shohei YOSHIDA 2441475f56
Merge pull request #725 from syohex/syohex/perf-inject-buildid-cache
Update 'inject' and 'buildid-cache' options
2020-05-12 08:40:06 +09:00
Shohei YOSHIDA f46cc5639f Update 'inject' and 'buildid-cache' options 2020-05-12 08:31:10 +09:00
Shohei YOSHIDA 61ef747cd2
Merge pull request #724 from syohex/syohex/perf-mem
Implement 'perf mem' completion
2020-05-12 08:13:07 +09:00
Shohei YOSHIDA 18a6415967 Implement 'perf mem' completion 2020-05-12 00:52:20 +09:00
Shohei YOSHIDA 1e42bda442
Merge pull request #723 from syohex/syohex/perf-test
Update 'perf test' completion
2020-05-11 23:41:23 +09:00
Shohei YOSHIDA a2b542f687 Update 'perf test' completion 2020-05-11 23:17:27 +09:00
Shohei YOSHIDA 0928b14409
Merge pull request #722 from syohex/syohex/perf-c2c
Implement perf c2c completion
2020-05-11 08:38:35 +09:00
Shohei YOSHIDA 8292501ae1 Implement perf c2c completion 2020-05-11 08:14:08 +09:00
Shohei YOSHIDA e9e8e8f322
Merge pull request #721 from syohex/syohex/perf-subcommand
Implement perf config/ftrace/kallsyms subcommand
2020-05-10 23:17:14 +09:00
Shohei YOSHIDA f816c920c5 Implement perf config/ftrace/kallsyms subcommand 2020-05-10 20:32:32 +09:00
Shohei YOSHIDA a36eb3b7cb
Merge pull request #720 from syohex/syohex/update-subcommand
Update perf subcommand
2020-05-10 19:55:55 +09:00
Shohei YOSHIDA 9dc327a19b Update subcommand 2020-05-10 19:01:08 +09:00
Shohei YOSHIDA f7b828d2c2
Merge pull request #719 from syohex/syohex/perf-probe
Implement perf probe completion
2020-05-10 11:58:01 +09:00
Shohei YOSHIDA e60485263b Implement perf probe completion 2020-05-10 10:50:16 +09:00
Shohei YOSHIDA a91e86106d
Merge pull request #717 from syohex/syohex/perf-stat
Implement perf stat completion
2020-05-10 00:17:43 +09:00
Shohei YOSHIDA aea74be9a4 Implement perf stat completion
except stat record/report completion
2020-05-09 23:40:19 +09:00
Shohei YOSHIDA 91c7785937
Merge pull request #716 from syohex/syohex/perf-top
Implement perf top completion
2020-05-09 22:03:56 +09:00
Shohei YOSHIDA 580905588b Implement perf top completion 2020-05-09 20:44:00 +09:00
Shohei YOSHIDA 3d6bbc108e
Merge pull request #715 from syohex/syohex/yarn-posix
Don't use sed gnu extension, use POSIX syntax
2020-05-09 19:36:37 +09:00
Shohei YOSHIDA 73505e4768 Don't use sed gnu extension, use POSIX syntax 2020-05-09 19:22:56 +09:00
Shohei YOSHIDA a500a4e5d2
Merge pull request #714 from syohex/syohex/fix-run-opt_args-issue
Fix run subcommand --cwd issue
2020-05-09 17:07:32 +09:00
Shohei YOSHIDA fd64c85cf7 Fix run subcommand --cwd issue
opt_args cannot be read from 2nd completion
2020-05-09 16:48:48 +09:00
Shohei YOSHIDA bb8d024b65
Merge pull request #713 from syohex/syohex/update-yarn
Update yarn completion
2020-05-09 15:39:57 +09:00
Shohei YOSHIDA 1a420d3839 Update subcommand flags 2020-05-09 14:57:49 +09:00
Shohei YOSHIDA 44e1c1ed9c Improve completion when '--cwd' is specified 2020-05-09 14:28:04 +09:00
Shohei YOSHIDA 4601310ac2 Update subcommand completion 2020-05-09 10:08:03 +09:00
Shohei YOSHIDA 195bdb40c7 Set description for all options 2020-05-08 08:42:05 +09:00
Shohei YOSHIDA 4817a6afba Update yarn command line options 2020-05-08 07:48:34 +09:00
Kanashimia d57ce3b635
Remove '*' from nix* and docker* 2020-05-05 02:52:58 +03:00
Kanashimia 378d08d82d
Another minor changes.. 2020-05-05 02:46:48 +03:00
Kanashimia 44b3d21dd7
Fix all words to start with a lowercase letter. 2020-05-05 02:41:27 +03:00
Kanashimia 565d378f00
Update _stack 2020-05-05 02:24:33 +03:00
Shohei YOSHIDA 864db6690a
Merge pull request #710 from jsamr/patch-1
replace broken link to linux-mag with its latest archive.org backup
2020-05-03 06:10:48 +09:00
Jules Sam. Randolph 86995a135e
replace broken link to linux-mag with its latest archive.org backup 2020-05-02 15:47:16 -03:00
Shohei YOSHIDA 41828e2df4
Merge pull request #706 from syohex/syohex/add-protoc
Add protoc compdef
2020-04-24 20:53:14 +09:00
Shohei YOSHIDA 48550b5ec5
Merge pull request #708 from syohex/syohex/improve-node-inspect-completion
Improve node inspect completion
2020-04-24 17:40:10 +09:00
Shohei YOSHIDA e6eb268a07 Improve node inspect completion
It should be completed only after 'node'
2020-04-23 21:31:49 +09:00
Shohei YOSHIDA 6599edabdc
Merge pull request #707 from syohex/syohex/update-node-v14
Update node completion to v14
2020-04-23 20:52:05 +09:00
Shohei YOSHIDA 9f5aa05a75 Update node completion to v14 2020-04-22 23:41:36 +09:00
Shohei YOSHIDA 376c51ca59 Add protoc compdef 2020-04-22 23:12:27 +09:00
Shohei YOSHIDA d4e54f1e04
Merge pull request #660 from jubnzv/cppcheck-compdef
Add cppcheck support
2020-04-17 20:54:06 +09:00
Shohei YOSHIDA e8781a252e
Merge pull request #705 from syohex/syohex/99
Don't use _git private functions
2020-04-17 15:18:13 +09:00
Shohei YOSHIDA 7e614ffb9a Don't use _git private functions
Use own function instead
2020-04-17 13:45:58 +09:00
Shohei YOSHIDA bc51049d99
Merge pull request #701 from rex4539/fix-typos
Fix typos
2020-04-09 20:46:15 +09:00
Dimitris Apostolou 9e9bee7066
Fix typos 2020-04-09 11:51:09 +03:00
Shohei YOSHIDA 578d1d59c2
Merge pull request #697 from dancek/git-revise
Add completion for git-revise
2020-04-08 23:20:19 +09:00
Hannu Hartikainen bb376aee80 Add completion for git-revise 2020-04-08 15:53:05 +03:00
Shohei YOSHIDA e928ee1764
Merge pull request #699 from syohex/syohex/flameshot
Add flameshot completion
2020-04-05 11:00:38 +09:00
Shohei YOSHIDA 6e16420828 Add flameshot completion 2020-04-04 09:44:15 +09:00
Shohei YOSHIDA 72b1b8f8c1
Merge pull request #696 from nfischer/feat-emulator-avd-completion
Add avd completion to _emulator
2020-03-31 00:57:06 +09:00
Shohei YOSHIDA 3b36dcfe77
Merge pull request #698 from fanquake/bitcoin_cli_0191
Update _bitcoin-cli completion for v0.19.1
2020-03-31 00:56:13 +09:00
fanquake 0b2d06f012
Update _bitcoin-cli completion for v0.19.1 2020-03-30 11:21:09 +08:00
Nate Fischer 99780ec53d
Add avd completion to _emulator
This resolves a TODO in _emulator by adding completion for AVD names.
This adds completion for "-avd" as well as the special "@AVD_NAME"
syntax for non-option arguments.
2020-03-28 13:34:20 -07:00
Shohei YOSHIDA e1523b4d68
Merge pull request #695 from syohex/syohex/dget-complete-also-package
Complete also package name
2020-03-26 07:37:33 +09:00
Shohei YOSHIDA dc00f90ff7 Complete also package name 2020-03-26 00:26:56 +09:00
Shohei YOSHIDA bf24777aa1
Merge pull request #694 from syohex/syohex/yarn-add-file-completion
Complete local file 'yarn add'
2020-03-25 08:16:42 +09:00
Shohei YOSHIDA 78d8744642 Complete local file 'yarn add'
Complete local file if 'file:' or 'link:' is specified
2020-03-25 00:05:14 +09:00
Shohei YOSHIDA a264c2d123
Merge pull request #692 from syohex/syohex/update-kitchen
kitchen: fix regexp which collects subcommands
2020-03-24 08:00:46 +09:00
Shohei YOSHIDA d9690b1a67 Fix regexp which collects subcommands
fix: https://github.com/zsh-users/zsh-completions/issues/677
2020-03-24 01:38:18 +09:00
Shohei YOSHIDA ed0c7a75df
Merge pull request #691 from syohex/syohex/update-node
Update node completion v12.16
2020-03-24 00:40:13 +09:00
Shohei YOSHIDA dcd7c63c3e Update node completion v12.16 2020-03-22 22:13:35 +09:00
Shohei YOSHIDA 10a79ec71a
Merge pull request #690 from syohex/syohex/node-prof-process-completion
Complete only .log file if --prof-process is specified
2020-03-22 10:05:06 +09:00
Shohei YOSHIDA b9256a9942 Complete only .log file if --prof-process is specified
Fixes: https://github.com/zsh-users/zsh-completions/issues/633
2020-03-21 18:06:04 +09:00
Shohei YOSHIDA dddbea879b
Merge pull request #676 from pseyfert/cmake_unity
[cmake] updates for cmake 3.16
2020-03-20 12:05:53 +09:00
Shohei YOSHIDA 724cb01511
Merge pull request #678 from v1z4/master
Add file completion to `mix format`
2020-03-20 12:05:33 +09:00
Shohei YOSHIDA d1d7e6eefa
Merge pull request #679 from dark-panda/add-pg-completions
Add additional PostgreSQL completions for PostgreSQL 12+
2020-03-20 12:05:10 +09:00
Shohei YOSHIDA 2f2b027085
Merge pull request #689 from nfischer/feat-add-emulator-options
Add more options for Android emulator completion
2020-03-20 12:04:39 +09:00
Nate Fischer a71b924b83
Add more options for Android emulator completion
This adds several options to _emulator:

* -list-avds
* -writable-system
* -cores
* -accel
* -no-accel
* -help entries for each of the above

Issue #41
Test: loaded this plugin and tested tab completion on these options,
messages seem fine
2020-03-18 22:45:42 -07:00
J Smith f46ec9befb Add additional PostgreSQL completions for PostgreSQL 12+ 2020-02-13 14:31:02 -04:00
Vizakenjack 7455d602a4 Added file completion 2020-01-22 12:15:50 +03:00
vaporwavy a6e641b977 Fix typo in _cmake (#672) 2020-01-17 14:39:12 -08:00
kamimura 152abee68a change os name: Mac OS to macOS (#656) 2020-01-17 14:35:38 -08:00
Maxim Devoir 493984e7f1
Yarn | cross-platform sed replacement pattern newline solution (#666)
Some sed utilities (e.g. Mac OS / BSD) don't interpret `\n` in a replacement pattern as a newline.
2020-01-17 13:22:00 -08:00
Marc Cornellà e32536a208 _yarn: fix parsing of yarn run on scripts containing } (#668)
Fixes #667
2020-01-17 12:54:37 -08:00
Paul Seyfert 4bf0ed4049 cmake: new command line options 2020-01-01 15:19:08 +01:00
Paul Seyfert 2b34796cb6 cmake: add CMAKE_UNITY_BUILD variable 2020-01-01 11:49:32 +01:00
Sebastian Gniazdowski a9d0a2cda6 Completion for Midnight Commander (`mc' command) 2019-11-01 17:18:54 +01:00
Georgy Komarov 1eb4759854 better completion with filetypes 2019-10-24 17:01:08 +03:00
Georgy Komarov f6eff10118 Add cppcheck support 2019-10-23 22:46:30 +03:00
nicoulaj 8def5f1583
Merge pull request #655 from danteu/cmake_add_parallel
cmake: Add `--parallel` build option
2019-10-08 18:55:29 +02:00
nicoulaj 87e131334f
Merge pull request #653 from MaximDevoir/feat/improve-yarn-suggestions
YARN | Improve suggestions for `yarn run` command
2019-10-08 18:54:55 +02:00
nicoulaj bbc8bada78
Merge pull request #654 from bondz/patch-1
Add --latest flag for yarn upgrade-interactive
2019-10-08 18:53:55 +02:00
nicoulaj 6e6468d51f
Merge pull request #649 from yan12125/port-new-subcommands
_port: add new subcommands 'bump', 'diagnose' and 'reclaim'
2019-10-08 18:50:09 +02:00
Maxim Devoir c9b335769c
revert: suggest binaries on `yarn`
This behavior is the same as before c6bdbc69e1
2019-10-07 12:14:10 -07:00
Daniel Teunis 4b5da4cbe0 cmake: Add `--parallel` build option 2019-10-07 00:25:06 +02:00
Chih-Hsuan Yen 0d8db2fb32
_port: add new subcommands 'bump', 'diagnose' and 'reclaim'
Subcommand descriptions are from upstream man pages [1][2][3].

[1] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-bump.1.txt
[2] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-diagnose.1.txt
[3] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-reclaim.1.txt
2019-10-04 17:58:55 +08:00
Bond 21aa84dba2
Add --latest flag for yarn upgrade-interactive 2019-10-03 05:05:46 +01:00
Marc Cornellà a47b58ef97
Parse script commands without `jq`
Source from https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537484017
2019-10-02 07:42:15 -07:00
Maxim Devoir c6bdbc69e1
Separate project scripts from binary packages
If `jq` utility is installed:

- Suggests script names from `package.json` and their associated script

Following [this feedback](https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537148142), binaries will always be suggested.
2019-10-02 02:47:13 -07:00
okapia 922eee0706
Merge pull request #651 from jordanrastrick/yarn-script-file-completion
fall back to file completion for yarn scripts
2019-10-01 08:39:33 +02:00
Jordan Rastrick 4add7f4dfb
Improve _yarn changes
Use `_default` instead of `_files` and don't unnecessarily wrap with `_arguments`
2019-10-01 12:50:37 +10:00
okapia 09ab278312
Merge pull request #652 from lpbearden/master
Added in missing jrnl option --edit
2019-09-28 09:33:25 +02:00
Lucas Bearden ed44d39efa added in missing option --edit 2019-09-27 23:10:35 -04:00
Jordan Rastrick 1000d2ea8b
fall back to file completion for yarn scripts 2019-09-26 16:59:14 +10:00
Julien Nicoulaud a3fab81aec
#647: remove kitty completion, upstream provides one 2019-09-20 21:41:28 +02:00
nicoulaj ef31690c88
Merge pull request #646 from pseyfert/golang1.13
[golang] prepare for golang 1.13 updates
2019-09-20 21:27:15 +02:00
nicoulaj 40c6c768ea
Merge pull request #645 from lzutao/rm_multirust
Remove _multirust which is replaced by rustup
2019-09-20 21:26:28 +02:00
nicoulaj a9704678f8
Merge pull request #644 from veloute/patch-1
Update _ufw to add 'prepend' command
2019-09-20 21:26:03 +02:00
nicoulaj 9a461c7c9d
Merge pull request #643 from filalex77/add-inxi-completion
Add completion for inxi
2019-09-20 21:25:37 +02:00
nicoulaj ca24e66278
Merge pull request #642 from pseyfert/go-relative-paths
[golang] unify package completion for build and run
2019-09-20 21:24:51 +02:00
Paul Seyfert 0a0894d07c go env can show values of individual environment variables 2019-08-23 14:43:31 +02:00
Paul Seyfert 17239cec96 minor 1.13 changes 2019-08-23 14:37:32 +02:00
Paul Seyfert c8647517f3 fixup new env vars 2019-08-23 14:22:52 +02:00
Paul Seyfert 1133c0c82d prepare go 1.13 2019-08-23 14:16:57 +02:00
Lzu Tao 4001cd83cf Remove _multirust which is replaced by rustup 2019-08-06 14:02:27 +00:00
veloute 725c65cc4c
Update _ufw to add 'prepend' command 2019-07-28 06:48:08 +00:00
Oleksii Filonenko c5a45e3e3f
Add completion for inxi
https://github.com/smxi/inxi
2019-07-21 12:27:32 +03:00
Paul Seyfert e73235f0df [golang] unify package completion for build and run
* let both `go build` and `go run` suggest local files and dirs with
   `go build ./something`
 * let both suggest package identifiers
   `go build github.com/username/reponame`
 * automatically prefix relative paths with './'
   `go build file<TAB>` → `go build ./file.go`
2019-07-18 23:07:32 +02:00
Julien Nicoulaud b512d57b6d
#610: add compdef for concourse 5.2.0 (https://concourse-ci.org) 2019-06-18 19:55:11 +02:00
Julien Nicoulaud 303c6c532d
Merge pull request #638 from dark-panda/fix-pg-createuser
Fix a syntax error on the PostgreSQL `createuser` utility
2019-06-18 19:51:08 +02:00
Julien Nicoulaud 2f2cca8db9
Merge pull request #637 from pseyfert/cmake_generator_variable
[cmake] complete CMAKE_GENERATOR environment variable values
2019-06-18 19:50:41 +02:00
Julien Nicoulaud be210396fa
Merge pull request #636 from pseyfert/cmake_launch
provide CMAKE_<LANG>_COMPILER_LAUNCHER in cmake completion
2019-06-18 19:46:32 +02:00
Julien Nicoulaud c4e71acece
Merge pull request #635 from laggardkernel/fix-vagrant
hardcode location of command stat for macOS
2019-06-18 19:45:43 +02:00
Julien Nicoulaud 3ffe3e2cc5
Merge pull request #634 from Shivamgupta1234/master
Completion function for nano editor!
2019-06-18 19:44:40 +02:00
J Smith 2ab70accf4 Fix a syntax error on the PostgreSQL `createuser` utility 2019-06-14 16:12:15 -03:00
Paul Seyfert 1c41bbef29 [cmake] complete CMAKE_GENERATOR environment variable values
will be introduced in cmake 3.15
https://cmake.org/cmake/help/v3.15/manual/cmake-env-variables.7.html#environment-variables-that-control-the-build
2019-06-13 14:13:32 +02:00
Paul Seyfert 90aab6796d provide CMAKE_<LANG>_COMPILER_LAUNCHER in cmake completion
https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_LAUNCHER.html
2019-06-12 15:36:10 +02:00
laggardkernel facb6f40fb hardcode location of command stat for macOS
Hardcode /usr/bin/stat to bypass stat from coreutils.
2019-06-03 23:28:05 +08:00
Shivamgupta1234 ae17c53a4b
Update _nano 2019-06-01 09:29:00 +05:30
Shivamgupta1234 3cf94eef32
minor suggested changes
1.remove license header,
2.remove top level nano() function,
3.remove _nano_file_ function.
2019-06-01 07:13:44 +05:30
Shivamgupta1234 46666e519a
Add completion for nano editor! 2019-05-31 08:16:15 +05:30
Shivamgupta1234 d06d3f75a5
Add completion for nano editor! 2019-05-31 08:14:42 +05:30
Julien Nicoulaud 4f939ade9a
Merge pull request #628 from cuspymd/pm2
Add pm2 completion
2019-05-26 19:45:18 +02:00
Julien Nicoulaud 95e107f1bb
Merge pull request #626 from yous/git-flow-status
git-flow: remove non-existing subcommand
2019-05-26 19:44:27 +02:00
Julien Nicoulaud 23ade7b6eb
Merge pull request #630 from jjangga0214/patch-1
edit README.md: use `$ZSH_CUSTOM` if it exists
2019-05-26 19:42:51 +02:00
Julien Nicoulaud fe6c149653
Merge pull request #632 from pseyfert/gotest
add options for 'go test -test.'
2019-05-26 19:42:22 +02:00
Julien Nicoulaud b585ff1f2f
#618: delete rvm, it is already provided by upstream project (https://github.com/rvm/rvm/blob/master/scripts/extras/completion.zsh/_rvm) 2019-05-26 19:33:28 +02:00
Julien Nicoulaud 5b5e9fda12
add completion for fwupdmgr 1.2.9 (https://github.com/hughsie/fwupd) 2019-05-26 19:09:03 +02:00
Julien Nicoulaud d1c0b5d50d
add completion for kitty 0.14.0 (https://sw.kovidgoyal.net/kitty) 2019-05-26 19:08:35 +02:00
Paul Seyfert a879b3b23e add options for 'go test -test.' 2019-05-18 16:06:12 +02:00
jjangga0214 f68950a304
edit README.md: use `$ZSH_CUSTOM` if it exists
`${ZSH_CUSTOM:=~/.oh-my-zsh/custom}` would use value of `$ZSH_CUSTOM` if it exists. Otherwise it falls back to `~/.oh-my-zsh/custom`
2019-04-09 21:06:13 +09:00
Myoungdo Park ba7ae00cce Add pm2 completion 2019-03-23 06:06:37 +09:00
Chayoung You bdb5503c95
git-flow: remove non-existing subcommand
git-flow calls a subcommand based on filename, see
15aab26490/git-flow (L91-L97).
But git-flow-status doesn't exist on git-flow repository.
2019-03-12 14:15:35 +09:00
nicoulaj cf565254e2
Merge pull request #615 from jheidbrink/master
Fix typo
2018-12-13 18:23:04 +01:00
Jan Heidbrink dd76d8064e Fix typo 2018-12-09 16:23:58 +01:00
nicoulaj 840272c0b9
Merge pull request #613 from segevfiner/patch-1
Remove a bad space in _golang
2018-12-04 19:26:22 +01:00
Segev Finer 5f5d2bb51c
Remove a bad space in _golang 2018-12-02 16:09:57 +02:00
nicoulaj 6215de5d9c
Merge pull request #612 from kiendang/vboxmanage-medium
Update medium related commands for VBoxManage
2018-11-20 20:12:35 +01:00
kiendang bc1dbe6b02 Update medium related commands for VBoxManage 2018-11-17 10:05:47 +08:00
nicoulaj 570a0dfb73
Merge pull request #608 from zsh-users/cleanup
Delete some compdefs that have been included in zsh
2018-11-12 19:06:01 +01:00
nicoulaj 084d60da5a
Merge pull request #609 from mqus/patch-1
Add _nft (iptables successor) completion
2018-11-12 19:05:04 +01:00
Markus Richter 28679cf7c3 remove last expl[@] strings and replace them with the generic "$@" 2018-11-06 20:56:19 +01:00
Markus Richter 6eda4d8276 fix family/handle/table completion, remove uneccessary expl 2018-11-06 00:54:25 +01:00
nicoulaj 5fdcec1bef
Merge pull request #547 from tony/improve-tmuxp-load
improve tmuxp load completions
2018-11-05 19:55:01 +01:00
Markus Richter ecd02cf5ba renamed file, documented some more functions 2018-11-05 16:37:10 +01:00
Markus Richter 0f0b1d8184 add fixes suggested by okapia and some more 2018-11-04 23:05:08 +01:00
Markus Richter 9aaf2e64fb Add description/author header 2018-11-04 15:11:45 +01:00
mqus d4d55235da
Add _nft (iptables successor) completion
Some things to note here:
1.: There are bugs in the code as I'm no expert on zsh completion *at all*. I just trial-and-error'd a big part of it.
2.: Some things are not done here (marked with a `TODO`), namely the statement syntax of some `nft add` commands.
3.: Some completions try to complete existing chain names/rule handles/table names. For this you either have to be root or use sudo AND enable the gain-privileges zstyle (otherwise this will not work)
4.: I also found the nft man page to be somewhat lacking so there might be some edge case completions which are plain wrong.
2018-11-04 15:01:52 +01:00
Julien Nicoulaud f8cede57f0
_ansible in zsh replaces all our _ansible* compdefs 2018-11-04 14:41:31 +01:00
Julien Nicoulaud 9edc47d5a3
Delete some compdefs that have been included in zsh (thanks @okapia)
Command used, on a zsh 5.6.2 installation:

    for def in src/*; { [[ -n $(find /usr/share/zsh/functions -name ${def:t}) ]] && git rm $def }

Closes #607
2018-11-04 14:36:19 +01:00
Julien Nicoulaud c614accc90
#605: conan: fix plural form confusion 2018-11-04 14:34:53 +01:00
Julien Nicoulaud e11fbae88e
git ignore some IDE files 2018-11-04 14:27:35 +01:00
nicoulaj a1b138c34e
Merge pull request #604 from Edhebi/patch-1
Follow to PR #601: still one typo
2018-11-01 20:54:04 +01:00
Edhebi 5f34afa1bf
Follow to PR #601: still one type
The previous PR#601 fixed "compabilty" on 3 lines over 4. The PR fixes the last one
2018-10-25 09:57:30 +02:00
Julien Nicoulaud 9384691702
README: fix links 2018-10-24 20:44:35 +02:00
Julien Nicoulaud 8ec8c8c5c6
tox: fix function not defined first time completion is called + simplify it 2018-10-24 20:32:56 +02:00
nicoulaj ddda39de92
Merge pull request #600 from pseyfert/golang
[golang] add buildmode completion
2018-10-24 19:58:49 +02:00
nicoulaj 69c94a7a4e
Merge pull request #601 from Edhebi/patch-1
Fix typos in _trash-put
2018-10-24 19:58:22 +02:00
Edhebi 4c700530b7
Fix typos
Fixing "compabilty" to "compatibility"
2018-10-18 00:42:31 +02:00
Paul Seyfert b03195e636 [golang] add buildmode completion
add the build modes from `go help buildmode` to the completion of
`go build -buildmode <TAB>`
2018-10-16 21:27:01 +02:00
nicoulaj 84a820a798
Merge pull request #588 from Eisfunke/master
Add completion script for wireguard's wg-quick
2018-10-13 23:45:08 +02:00
Julien Nicoulaud c299511237
#505: pg_restore accepts a file 2018-10-13 23:39:52 +02:00
Julien Nicoulaud 9a0dde3d49
#595: chromium can open files too 2018-10-13 23:33:24 +02:00
Julien Nicoulaud 02479c2fb0
#533: fix command positional substitution arguments conflicting with options 2018-10-13 23:23:34 +02:00
nicoulaj 53e2c3c22d
Merge pull request #599 from ralphcallaway/ralphcallaway-patch-1
Completions How To's Typo Fix So second _regex_arguments example works
2018-10-13 23:10:52 +02:00
Julien Nicoulaud 4235fe5d69
#533: add tox completion 2018-10-13 23:07:51 +02:00
Julien Nicoulaud 5bef032398
Packages: fix broken links, add Slackware and NetBSD 2018-10-13 23:07:51 +02:00
Julien Nicoulaud 2a1350a60d
#591: move CONTRIBUTING to root directory, README cleanup 2018-10-13 23:07:50 +02:00
Ralph Callaway 98cae97aa1
Fix typo
example wasn't working due to typo
2018-10-12 01:58:57 -04:00
nicoulaj 09ab969e20
Merge pull request #594 from mikkeloscar/update-golang-111
Update completetions for Go 1.11
2018-09-04 12:26:19 +02:00
Mikkel Oscar Lyderik Larsen 3875707119
Update completetions for Go 1.11
Updates the completions for Go 1.11 which introduced a new `go mod`
command.

https://groups.google.com/forum/#!topic/golang-announce/O7POXMK3xbM

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
2018-09-04 09:31:23 +02:00
okapia 779da41063
Merge pull request #578 from pseyfert/cmake_c_flags
use CPPFLAGS completion for CMAKE_CXX_FLAGS completion
2018-08-29 23:05:15 +02:00
Paul Seyfert 34e36dfc9b fixup based on review comment 2018-08-29 20:29:06 +02:00
Paul Seyfert c0eedafd93 use CPPFLAGS completion for CMAKE_CXX_FLAGS completion
cmake -DCMAKE_*_FLAGS*=<TAB>
will invoke _gcc as if one completes
export CPPFLAGS=<TAB>

Given that _gcc doesn't distinguish between CFLAGS, CPPFLAGS, or
CXXFLAGS, neither do we here.
2018-08-29 20:26:38 +02:00
okapia c97cb23593
Merge pull request #590 from daboross/patch-1
Fix kakoune completion not providing a description argument to _values
2018-08-29 16:19:33 +02:00
Nicolas Lenz c4587d5cf7 Use built-in _path_files instead of sed 2018-08-26 21:16:26 +02:00
Nicolas Lenz b97156b51e Fix typo in wg-quick 2018-08-26 20:35:37 +02:00
Julien Nicoulaud a617b745cf
Add github templates 2018-08-26 16:07:13 +02:00
David Ross 9a215c194c Replace _values with compadd, and other cleanup recommended
Thanks @okapia!
2018-08-25 17:37:09 -07:00
Julien Nicoulaud 955645c22b
add conan completion (work in progress) 2018-08-26 01:08:15 +02:00
Julien Nicoulaud 8e5db9fcb1
#562: rclone now ships its own completion (f1f7e0e6f9) 2018-08-26 01:07:30 +02:00
nicoulaj f3b38922bf
Merge pull request #568 from kapsh/glances
glances: update existing arguments
2018-08-26 00:58:51 +02:00
nicoulaj 69d7166518
Merge pull request #572 from pseyfert/iwyu
WIP: adding include-what-you-use completion
2018-08-26 00:55:42 +02:00
nicoulaj 55bedff245
Merge pull request #584 from grimreaper/eax/completion/macports_port_add_select
_port: add some missing values
2018-08-26 00:47:12 +02:00
nicoulaj 3924ee7cc4
Merge pull request #583 from Robinhuett/ecdsautil
Added ecdsautils
2018-08-26 00:47:02 +02:00
nicoulaj 577e98372e
Merge pull request #579 from ybiquitous/update-nodejs-completion
Update Node.js completion to fit latest version
2018-08-26 00:43:06 +02:00
nicoulaj 94ad3f32ba
Merge pull request #576 from pseyfert/ccache
add ccache completion
2018-08-26 00:39:37 +02:00
nicoulaj 94e1d2be9b
Merge pull request #575 from ssiegel/improve-ansible-completion
Improve ansible completion
2018-08-26 00:37:58 +02:00
nicoulaj eec18e681e
Merge pull request #570 from pseyfert/chromium
adding completion function for chromium (the browser)
2018-08-26 00:28:19 +02:00
nicoulaj df4a398d0c
Merge pull request #565 from NiKoTron/master
add flutter.io cli tool completions
2018-08-26 00:19:53 +02:00
nicoulaj 742d2f1c08
Merge pull request #564 from Madh93/add-more-rspec-completions
Add more RSpec completions
2018-08-26 00:16:45 +02:00
nicoulaj 1a7b8f486c
Merge pull request #550 from wadewegner/master
Added support for the Salesfore CLI
2018-08-26 00:16:21 +02:00
David Ross c059bbdfe6
Fix kak_sessions not sending _values enough arguments
Using zsh 5.4.2, I am occasionally running into an error "_values:compvalues:11: not enough arguments". When it doesn't occur, instead, one of the kakoune sessions does not appear as part of autocompletion.

This fixes both problems for me by providing a description as described in http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System. "The first non-option argument is used as a string to print as a description before listing the values. "
2018-08-25 14:56:06 -07:00
okapia df7e44c685
Merge pull request #587 from fdw/master
Fix & update hledger completion
2018-08-08 12:12:21 +02:00
Fabian Winter 8c08f6396c hledger: Add completions for all commands and parameters 2018-08-07 17:53:56 +02:00
Eisfunke 639d209d62 Add completion script for wireguard's wg-quick 2018-08-04 15:23:07 +02:00
Fabian Winter 07b4d49b18 hledger: Fix syntax errors 2018-07-30 17:15:10 +02:00
okapia 0aa0a2d222
Merge pull request #586 from fdw/master
Re-add and update hledger completion
2018-07-29 22:07:59 +02:00
Fabian Winter c66a6b1c27 Update hledger completion
There have been some changes in the last four years. I included what
seemed to me the most important commands and parameters.
2018-07-29 19:55:43 +02:00
Fabian Winter e1273aa5b5 Re-add hledger completion
Thanks to @Valodim, who licenced their old completion under Apache 2.0,
as written in #585
2018-07-29 19:55:43 +02:00
okapia 8bf4ffe900
Merge pull request #582 from pseyfert/cmake_fixup
shift words array before passing from _cmake to build tool
2018-07-29 13:12:16 +02:00
Eitan Adler 4b1e7502fd _port: add some missing values 2018-07-04 20:13:39 -07:00
Robinhuett 5c3264b391 Added ecdsautils 2018-06-28 10:43:01 +02:00
Paul Seyfert 2527ac9c03 shift words array before passing from _cmake to build tool
* this fixes #581
2018-06-25 14:49:03 +02:00
Paul Seyfert 9f5c2796d7 last bit of ccache 2018-06-19 16:40:48 +02:00
Paul Seyfert 0b151f1749 add actual arguments for ccache completion 2018-06-19 16:40:48 +02:00
Paul Seyfert 66f1f211b9 start environment variable completion 2018-06-19 16:40:48 +02:00
Paul Seyfert 543c22cb63 add ccache completion 2018-06-19 16:40:48 +02:00
okapia d3a273cedf
Merge pull request #577 from pseyfert/c_standards
extend cmake completion
2018-06-18 14:59:24 +02:00
okapia 5bf2eeb6de
Merge pull request #546 from pseyfert/cmake_module_path
add CMAKE_PREFIX_PATH to cmake completion
2018-06-18 14:59:12 +02:00
okapia dd540537ba
Merge pull request #544 from pseyfert/cmake_options
extend cmake completion
2018-06-18 14:58:58 +02:00
okapia 362421b5ce
Merge pull request #563 from thomasleveil/patch-1
fix 404 for the nicely formatted short tutorial showing basic usage o…
2018-06-18 14:54:40 +02:00
Oliver Kiddle 4b2d83c18b Remove completions that zsh itself includes
Zsh has included completions for paste, scl, ssh-copy-id and virsh
for a number of releases now.
2018-06-18 14:49:53 +02:00
Masafumi Koba 18db5b0611 Update Node.js completion to fit latest version
Remove old Node.js CLI options:

- `--max-stack-size`
- `--vars`

See also [Node.js doucmentation](https://nodejs.org/api/cli.html).
2018-06-18 11:10:51 +09:00
okapia 18b82d97bb
Merge pull request #573 from monkeyhybrid/macports
Add MacPorts link to README
2018-06-13 10:56:33 +02:00
Stefan Siegel 32875bed4b Improve ansible completion
Allow stacked/merged and repeated/incremental options
2018-06-12 01:17:23 +02:00
Steven Young 6096495651 Add MacPorts link to README 2018-06-03 01:15:04 +01:00
Paul Seyfert 1b4d48ef8f allow multiple imp files and add directories to .imp completion 2018-06-01 19:27:36 +02:00
Paul Seyfert 7d963814db suggest -Xiwyu more than once to include-what-you-use 2018-05-31 17:27:22 +02:00
Paul Seyfert 264856830f adding rough version of include-what-you-use completion 2018-05-29 15:59:37 +02:00
Paul Seyfert fc44d851ea adding completion function for chromium (the browser) 2018-05-21 11:04:05 +02:00
Mario Fernández e0290834ac
Merge pull request #569 from sbibauw/patch-1
yarn: rename clean to autoclean, add description for certain commands
2018-05-02 20:28:09 +02:00
Serge Bibauw ff73f4064f
yarn: rename clean to autoclean, add description for certain commands
- `clean` has been renamed to `autoclean` (https://github.com/yarnpkg/rfcs/pull/52)
- added description (from `yarn help [command]`) to `cache`, `import` and `versions`
2018-05-02 15:22:48 +02:00
Alexander Kapshuna 01c8d6282e glances: update existing arguments 2018-04-30 21:28:43 +03:00
NiKoTron 5e1439f17e add flutter.io cli tool completions 2018-04-22 02:16:07 +03:00
Madh93 399dd48d22 Add more RSpec completions 2018-04-18 22:57:45 +01:00
Thomas LÉVEIL e91b9fbe10
fix 404 for the nicely formatted short tutorial showing basic usage of the _arguments function 2018-04-11 22:40:45 +02:00
okapia 1a71e0a1a3
Merge pull request #560 from rspeed/osx-to-macos
Fix outdated references to "macOS" as "OS X", "Mac OS X", etc.
2018-04-02 00:08:48 +02:00
Rob Speed 95ed61ffc2 DOCS: Fix references to "macOS" as "OS X", "Mac OS X", etc.
Apple renamed "Mac OS X" to "macOS" in 2016.

* Replace instances of "OSX"/"OS X"/etc. with "macOS" in comments to reflect the change.
* There are additional references to things like "osx" in functional code which are left unchanged.
* Grammatical changes due to the initial letter changing from a vowel to a consonant (o => m) in some places.
* Fix a unrelated minor grammatical issue.
2018-03-31 17:35:11 -04:00
okapia b1b095cb16
Merge pull request #556 from jshort/master
Rename go completion to not collide with zsh file.
2018-03-19 20:55:49 +01:00
James Short 9362cc2e82 Rename go completion to not collide with zsh file.
There is a _go file in the zsh functions directory that would be found
first if you use OMZ with zsh-completions.  This is an ancient file in
zsh and does not complete for the go executable either, but it is still
there on typical zsh distributions.

This change makes it such that zsh/OMZ/zsh-completions can work in
harmony, if one so chooses.
2018-03-16 14:35:18 -07:00
Tony Narlock 4508695cb2 improve tmuxp load completions
1. Limit wildcard json/yaml file matches to current directory
2. Preserve all directory completion (for tabbing into directories)
3. Use unlimited depth search for directories with .tmuxp.(yaml/json)
   inside them. tmuxp load command can load the file or the directory.
2018-03-14 10:32:03 -05:00
Wade Wegner 21617af144
Added :file:_files as appropriate 2018-01-16 06:09:00 -08:00
Mario Fernández 70a7a5cdee
Merge pull request #545 from dkarter/patch-1
Add --only-failures to rspec completions
2018-01-10 21:10:18 +01:00
Wade Wegner ebdf22fe84 Merge branch 'master' of github.com:wadewegner/zsh-completions 2018-01-07 14:04:04 -08:00
Wade Wegner 4e2edad24f Update to include command arguments 2018-01-07 14:03:55 -08:00
Wade Wegner c1bf29df01
Fixed broken doc link 2018-01-07 05:12:35 -08:00
Wade Wegner 7d6d555910 Added support for the Salesfore CLI 2018-01-07 05:01:51 -08:00
Paul Seyfert e41dfffc0b added cxx and c language standards 2017-12-21 12:19:26 +01:00
Paul Seyfert 51592ac5a6 add CMAKE_PREFIX_PATH to cmake completion
https://cmake.org/cmake/help/v3.3/variable/CMAKE_PREFIX_PATH.html
 * some packages provide no Find${PROJECT}.cmake file but a ${PROJECT}Config.cmake instead
 * providing these through CMAKE_MODULE_PATH just results in an error
   message, which points out one should've used CMAKE_PREFIX_PATH instead.
2017-12-12 18:42:47 +01:00
Mario Fernández f615a1b518
Merge pull request #542 from svvac/patch-1
yarn: escape colons when getting scripts from package.json
2017-12-11 10:48:15 +01:00
Dorian Karter a9ca8f5fd9
Add --only-failures to rspec completions
See title. This would be available for rspec 3.x users.
2017-12-05 19:51:44 -06:00
Paul Seyfert c3b41b338b extend cmake completion
* added common properties for makefile verbosity
 * options are picked from https://stackoverflow.com/a/2673355
 * explanation strings from the cmake documentation
2017-11-17 10:15:17 +01:00
Simon Wachter 155c2a9939
yarn: escape colons when getting scripts from package.json 2017-11-06 13:33:30 +01:00
nicoulaj 372f9b47e9
Merge pull request #538 from okapia/master
Add completion for scons
2017-11-03 19:27:00 +01:00
nicoulaj f70c416f7d
Merge pull request #537 from danteu/master
Add tarsnap autocompletion
2017-11-03 19:26:34 +01:00
nicoulaj 1d0b4b71ea
Merge pull request #536 from bezhermoso/tmuxp
Add tmuxp auto-completion
2017-11-03 19:24:42 +01:00
Oliver Kiddle 538f2a0287 follow normal zsh case conventions in some functions 2017-10-28 00:23:07 +02:00
Oliver Kiddle 29ce259ea5 review the howto guide 2017-10-27 23:13:35 +02:00
dannyzen 831d89694d Revert "experiment for testing gcloud completion"
This reverts commit 2b58cdfdeb.
2017-10-27 11:04:25 -04:00
dannyzen 2b58cdfdeb experiment for testing gcloud completion 2017-10-27 11:01:57 -04:00
Daniel Teunis 70f69c15f9 rewrite tarsnap autocompletion based on PR review 2017-10-24 22:55:21 +02:00
Oliver Kiddle 38212a77ee Add completion for scons
This only handles the options. I never found a good way to get a
list of targets which would make it much more useful. But option
completion alone is useful and it falls back to file completion
so doesn't do any harm.
2017-10-21 16:19:48 +02:00
Julien Nicoulaud 7ec52769d3
Also add gitter badge 2017-10-19 20:13:28 +02:00
Julien Nicoulaud 46294bd01f
Fix link to #zsh-completions 2017-10-19 20:11:59 +02:00
Julien Nicoulaud f6ee0a0c8f
Add link to Void Linux package 2017-10-19 20:06:06 +02:00
Julien Nicoulaud ed7ba0a71c
Remove license header from compdefs I wrote (switching to the Zsh license) 2017-10-19 20:05:38 +02:00
Julien Nicoulaud 9e61938193
Change default license to the Zsh license (as discussed on zsh-workers mailing-list) 2017-10-19 19:54:32 +02:00
Bez Hermoso a86e06b336
Use _call_program when gathering list of tmux sessions 2017-10-19 09:02:24 -07:00
Bez Hermoso e7132b01c4
Dump stderr 2017-10-18 18:58:45 -07:00
Daniel Teunis 839f50f8a8 Add tarsnap autocompletion 2017-10-18 23:32:08 +02:00
Bez Hermoso d0dcdb632e
Implement suggestions: reduced code for session selection, fixed --help etc. 2017-10-18 14:10:45 -07:00
Bez Hermoso 630edf185b
Add tmuxp auto-completion 2017-10-18 12:07:07 -07:00
nicoulaj f13a8d454a Merge pull request #532 from nicolasdespres/caffeinate
Add completion for 'caffeinate'.
2017-09-28 21:40:54 +02:00
nicoulaj a22fe39009 Merge pull request #531 from hlx98007/master
knife plugin cannot ls path with quotes
2017-09-28 21:40:09 +02:00
nicoulaj 80eca0f068 Merge pull request #530 from tomonacci/fix-ibus-positional-arguments
_ibus: avoid the use of positional arguments
2017-09-28 21:39:24 +02:00
nicoulaj 03dce094a6 Merge pull request #526 from anderkonzen/mix_improvements
Add new Phoenix tasks, mostly included in the 1.3.0 release
2017-09-28 21:38:27 +02:00
nicoulaj e2a80bca25 Merge pull request #525 from jeffwidman/patch-1
Delete _ag in favor of upstream
2017-09-28 21:37:26 +02:00
Nicolas Despres 28d94cc3cf Add completion for 'caffeinate'. 2017-09-28 21:50:53 +13:00
Luxing Huang 59f97c36c9 fix knife cannot ls a path problem. (double quotes is the issue) 2017-09-20 16:39:46 -04:00
Tomo Kazahaya d0eed71d9b _ibus: avoid the use of positional arguments 2017-09-18 09:22:02 -04:00
Anderson Konzen 7bcd6810cb Add new Phoenix tasks, mostly included in the 1.3.0 release 2017-09-04 00:37:38 -03:00
Jeff Widman 93b3a91233 Delete _ag in favor of upstream
`ag` added their own upstream ZSH completion script: https://github.com/ggreer/the_silver_searcher/blob/master/_the_silver_searcher
2017-09-01 23:36:03 -07:00
nicoulaj 6a2895b7f5 Merge pull request #524 from dark-panda/pgsql-enhancements
Pgsql enhancements
2017-08-29 17:53:28 +02:00
nicoulaj 7ca3815ebc Merge pull request #523 from kapsh/yaml_ext
Add yaml to _ansible-playbook recognized extensions
2017-08-29 17:52:47 +02:00
nicoulaj 8a190214ae Merge pull request #522 from tomonacci/feature-xsel
Add completion script for xsel
2017-08-29 17:52:17 +02:00
nicoulaj 64bc23271b Merge pull request #521 from tomonacci/feature-ibus
Add completions for ibus
2017-08-29 17:51:46 +02:00
J Smith bbd0fe91f4 Add the --role option to the common pgsql options 2017-08-28 11:51:58 -03:00
J Smith 2a331231c5 Add additional options for initdb 2017-08-28 11:51:42 -03:00
J Smith 2653bb59a6 Add the -i/--interactive option for dropuser 2017-08-28 11:51:27 -03:00
J Smith 48f3bb5beb Add additional options for createuser 2017-08-28 11:50:02 -03:00
J Smith 41bc851b84 Add additional options for pg_dump 2017-08-28 11:49:47 -03:00
J Smith 506972a1d6 Add additional options for psql 2017-08-28 11:49:04 -03:00
kapsh c0f96253a4 Add yaml to _ansible-playbook recognized extensions 2017-08-27 17:47:54 +03:00
Tomo Kazahaya 16cf3ed1f9 Add completion script for xsel 2017-08-17 21:35:33 -04:00
Tomo Kazahaya 01a444f5e4 Add completions for ibus 2017-08-17 20:16:35 -04:00
nicoulaj 97ae4a914e Merge pull request #517 from lenormf/_kak
src _kak: Fix argument syntax and use `_call_program`
2017-08-01 19:43:45 +02:00
Frank LENORMAND 36f40092b0 src _kak: Fix argument syntax and use `_call_program` 2017-07-19 14:10:40 +03:00
nicoulaj 2a30b05a5c Merge pull request #509 from Tuurlijk/master
Use modifier expansion instead of dirname
2017-07-18 19:59:06 +02:00
nicoulaj 6dadd2ad9f Merge pull request #511 from yous/fix-bsd-sed
Replace character with newline using `tr`
2017-07-18 19:54:31 +02:00
nicoulaj 1f590a0e50 Merge pull request #512 from lenormf/_kak
src: Add completion for the Kakoune code editor
2017-07-18 19:52:26 +02:00
nicoulaj bfab968525 Merge pull request #513 from jvwdev/master
Add completions for zcash-cli
2017-07-18 19:46:09 +02:00
nicoulaj ac2da3b050 Merge pull request #514 from kloetzl/fix-exclusion-list
fix some exclusion lists
2017-07-18 19:45:04 +02:00
nicoulaj 746c3cfc15 Merge pull request #515 from kloetzl/add-sublime-text
add completion for sublime text
2017-07-18 19:44:23 +02:00
nicoulaj 467c32a602 Merge pull request #516 from kloetzl/add-resilio-sync
add completion for resilio sync
2017-07-18 19:39:31 +02:00
Fabian Klötzl 8535e97184 add completion for resilio sync 2017-07-13 10:01:31 +02:00
Fabian Klötzl d387453efa fix some exclusion lists 2017-07-10 13:06:14 +02:00
Fabian Klötzl b8d9450388 add completion for sublime text 2017-07-10 12:59:08 +02:00
Jordy van Wolferen 199076e104 bitcoin-cli update + add wallet functions 2017-07-09 12:14:34 +02:00
Jordy van Wolferen c053e7d05e Add completions for zcash-cli 2017-06-29 02:18:13 +02:00
Frank LENORMAND f37dad97cd src: Add completion for the Kakoune code editor 2017-06-21 13:30:22 +03:00
Chayoung You aa4c6d0abc
Replace character with newline using `tr`
BSD sed don't print newline for `\n` in replacement string.
2017-06-09 18:03:41 +09:00
ℳichiel ℛoos cdcbe19a9e
Use modifier expansion instead of dirname 2017-05-25 23:33:05 +02:00
Danny Rosen 01c69f3ce2 Merge pull request #507 from Dannyzen/master
adding additional features to cloudfoundry cli
2017-05-22 15:28:39 -04:00
dannyzen 8afa476126 adding authors and copyright 2017-05-16 12:03:24 -04:00
dannyzen f02423840c adding additional features to cloudfoundry cli 2017-05-16 12:00:45 -04:00
Massimiliano Torromeo 10609c16ec Merge pull request #506 from knu/sed_-E
Use `sed -E` instead of `-r`
2017-05-15 14:21:34 +02:00
Akinori MUSHA 32b4770dab Use `sed -E` instead of `-r`
`-E` is more widely supported, including GNU sed.

- [GNU sed](https://www.gnu.org/software/sed/manual/sed.html)
- [macOS](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/sed.1.html)
- [FreeBSD](https://man.freebsd.org/sed/)
- [NetBSD](http://netbsd.gw.com/cgi-bin/man-cgi?sed)
- [OpenBSD](http://man.openbsd.org/sed.1)
2017-05-15 17:40:15 +09:00
nicoulaj 89dcaeb562 Merge pull request #501 from mtorromeo/rkt
Update rkt completions
2017-05-12 20:03:31 +02:00
nicoulaj e31fcdcced Merge pull request #500 from mtorromeo/yarn
Added completion for yarn
2017-05-12 20:03:03 +02:00
nicoulaj de1508d194 Merge pull request #499 from tejanium/master
Update completion for mix
2017-05-12 20:02:39 +02:00
nicoulaj 5cc1c31d0e Merge pull request #497 from ianks/master
Add completions for bitcoin-cli
2017-05-12 20:02:03 +02:00
Massimiliano Torromeo 8cdf60b71c Updated rkt commands and arguments 2017-05-07 22:41:47 +02:00
Massimiliano Torromeo f9d7d9de78 Implemented autocompletion for rkt pods and images (Fixes #465) 2017-05-07 22:15:24 +02:00
Massimiliano Torromeo 9feab3990c Added completion for yarn 2017-05-06 19:52:10 +02:00
Teja Sophista a63a098071 Update completion for mix, add completion for mix test, fix completion for mix help 2017-04-18 20:20:52 +08:00
nicoulaj fa1c720584 Merge pull request #496 from patrick96/gist-read
Add gist completion for read flag
2017-04-14 19:28:29 +02:00
Ian Ker-Seymer 6285e0e019 Add completions for bitcoin-cli 2017-04-06 11:19:30 -04:00
patrick96 0ed2e86399
Set proper description for gist -r 2017-04-05 20:11:57 +02:00
patrick96 df5a3a1b6c
Try to follow the style guide 2017-04-02 20:57:12 +02:00
patrick96 d7a29723a1
Add gist completion for read flag
Fetches and offers completion for the gists of the currently logged in
user (via gist -l) for the '-r' and '--read' arguments
The data is cached for one day before expiring
2017-04-02 20:53:55 +02:00
Syohei YOSHIDA a185e55af6 Merge pull request #494 from i3wm/master
Pull request for addition of rclone completions
2017-03-13 22:52:03 +09:00
nicoulaj 6410565bce Merge pull request #489 from pelim/force-cli-completion
completion for salesforce CLI
2017-03-10 18:30:14 +01:00
nicoulaj 322fa63d3a Merge pull request #491 from aschrab/openssl
Support newer versions of OpenSSL
2017-03-10 18:29:09 +01:00
i3wm b0cb2ad747 Added _rclone 2017-03-08 08:42:24 +05:30
nicoulaj e98a138269 Merge pull request #493 from arcan1s/master
drop ripgrep completion
2017-03-03 19:12:55 +01:00
Evgeniy Alekseev b7c11f4020 drop ripgrep completion
Drop ripgrep completion since the package provides own autogenerated for
each release completion files.
2017-03-03 21:10:10 +03:00
nicoulaj 907cba3fd9 Update repository infos 2017-02-28 21:06:15 +01:00
Aaron Schrab ccb53f441f Support newer versions of OpenSSL
With OpenSSL 1.1.0e (likely earlier as well) the `list-*` commands are
no longer supported causing completion to fail for subcommands and
arguments of digest and cipher subcommands.

Instead use the output of `openssl help`, removing the section headers
and splitting the list of commands which that displays.  Earlier
versions don't actually have a `help` subcommand but they did already
produce the same help output for unknown subcommands, just preceded with
an error message about the invalid command. This error message is
removed along with the section headers.

One use of the obsolete `list-cipher-algorithms` subcommand remains, but
it is in the completion for the `genpkey` subcommand which is also
obsolete.
2017-02-27 19:43:31 -05:00
pelim f02dc8f680 add licence information 2017-02-27 11:57:11 +01:00
Syohei YOSHIDA 45aed46671 Merge pull request #490 from SmartFinn/ffind-completion
Add completion for ffind
2017-02-27 00:07:37 +09:00
Sergei Eremenko ceaff68d65 Add completion for ffind 2017-02-26 16:33:20 +02:00
pelim 58dbeb46cc inital commit 2017-02-25 09:34:52 +01:00
nicoulaj 72af5d08f1 Merge pull request #488 from SmartFinn/patool-completion
Add completion for patool
2017-02-13 19:52:56 +01:00
Sergei Eremenko 8855715806 Add completion for patool 2017-02-13 20:15:01 +02:00
Syohei YOSHIDA 425c193364 Merge pull request #487 from ypid/ansible/debops_hosts_support
Support to find Ansible hosts file in DebOps style projects
2017-02-13 16:25:59 +09:00
Robin Schneider 48d620dcb2
Support to find Ansible hosts file in DebOps style projects
In [DebOps](https://debops.org/), it is common to have the Ansible host
inventory in a projects directory below "$HOME". This allows to have multiple
and separate Ansible environments.  For such a setup, the host inventory can be
found at `$PWD/ansible/inventory/hosts` as Ansible is typically executed from
the root of the project.  This patch adds support for such a layout as
fallback.

Ref: https://docs.debops.org/en/latest/debops-playbooks/docs/guides/getting-started.html
2017-02-11 12:23:51 +01:00
Syohei YOSHIDA fb28eaf1d6 Merge pull request #470 from lenoch/yaourt-pkg-tar
yaourt: support .pkg.tar extension
2017-01-02 23:24:04 +09:00
Ondřej Svoboda 9a7bf55661 yaourt: support .pkg.tar extension
pacman's completion already supports this extension so just follow suit.

Motivation: makepkg produces packages (e.g. from AUR) without compression
with its PKGEXT='.pkg.tar' setting, which speeds up building and installing
them manually.
2017-01-02 14:10:27 +01:00
Julien Nicoulaud e88b3bcfa7 Add RPM installation info 2016-12-28 00:00:57 +01:00
Syohei YOSHIDA 8c037ae0e8 Merge pull request #483 from olejorgenb/udisksctl
Completion for 'udisksctl'
2016-12-27 16:50:23 +09:00
Ole Jørgen Brønner 3ae23b8996 udisksctl: Add some notes about the upstream bash completions 2016-12-27 07:53:50 +01:00
Ole Jørgen Brønner 688562c987 udisksctl: Change license to MIT
Fits in a header, less restrictive etc.

See https://github.com/zsh-users/zsh-completions/pull/483
2016-12-27 07:53:36 +01:00
Ole Jørgen Brønner bb32e9eb90 udisksctl: add new/missing command 2016-12-27 07:25:40 +01:00
Syohei YOSHIDA 3bdf1dd44a Merge pull request #481 from olejorgenb/util-linux-column
Completion for 'column' (util-linux)
2016-12-26 11:35:15 +09:00
Syohei YOSHIDA 8a0cbb62fa Merge pull request #482 from olejorgenb/util-linux-paste
Completion for 'paste' (util-linux)
2016-12-26 11:35:07 +09:00
Ole Jørgen Brønner 01760c8d21 Completion for 'udisksctl'
Salvaged from rejected/ignored patch to upstream by Damir Jelić (poljar) [1].

License is assumed to be gpl2 since it was submitted as a patch to udisks [2].

I tried contacting poljar, but the email address is no longer active.

[1] https://lists.freedesktop.org/archives/devkit-devel/2014-February/001554.html
[2] https://cgit.freedesktop.org/udisks/tree/tools
2016-12-25 08:30:44 +01:00
Ole Jørgen Brønner 2e79ec885b paste: add license header and fixes to auto-generated script
Note: allow multiple '-d' since the tool allow it and then it's an annoying
restriction if one have aliased paste. eg.: alias paste='paste -d ,'
2016-12-25 08:09:34 +01:00
Ole Jørgen Brønner 2f7763e9f2 paste: Autogenerated the easy parts 2016-12-25 07:52:55 +01:00
Ole Jørgen Brønner 53d0e3fea5 Completion for 'column' (util-linux) 2016-12-25 07:46:28 +01:00
Syohei YOSHIDA 75b70de1f9 Merge pull request #479 from zsh-users/go-subdir-comp
Fix path completion for completing go files in subdirectories
2016-12-23 19:02:48 +09:00
Syohei YOSHIDA 2606e51b6a Fix path completion for completing go files in subdirectories 2016-12-22 14:22:02 +09:00
nicoulaj 6965917e6d Merge pull request #478 from kota65535/master
Fix regex of ansible completion
2016-12-21 11:26:04 +01:00
kota65535 75bbd4b155 Fix regex of ansible completion 2016-12-21 18:43:23 +09:00
Syohei YOSHIDA 1e1c48e37b Merge pull request #476 from olejorgenb/patch-1
Add NixOS to list of distros
2016-12-20 13:43:34 +09:00
Ole Jørgen Brønner 9839d2917c Add NixOS to list of distros 2016-12-20 05:21:06 +01:00
Syohei YOSHIDA 8318b8a3b4 Merge pull request #474 from cjk/httpie-raw-json-file-paths
Added raw-json field file path support to httpie-completion.
2016-12-19 11:57:36 +09:00
Claus Klingberg e5bd16f740 Added raw-json field file path support to httpie-completion. 2016-12-18 19:26:52 +01:00
nicoulaj d170ef1363 Merge pull request #472 from ViktorHaag/revert-471-ag-past-version-one
Revert "fix version logic for major version > 0"
2016-12-04 19:01:09 +01:00
Viktor Haag 6c61261d93 Revert "fix version logic for major version > 0" 2016-12-02 16:32:13 -05:00
nicoulaj fd176b1ccf Merge pull request #471 from ViktorHaag/ag-past-version-one
fix version logic for major version > 0
2016-12-02 21:12:24 +01:00
Viktor Haag c011691455 version should check > 21, not > 22 2016-12-01 16:03:40 -05:00
Viktor Haag c802f5348b vars need $ prefixes 2016-12-01 14:26:58 -05:00
Viktor Haag 080d0b70f1 updated to use ack completion module style version checking
-- instead of looking at major and minor, we'll do what the ack completion
   module does: produce an x.y version number that we then compare directly to,
   to avoid complicated "if major version OR minor version" checking
2016-12-01 14:18:35 -05:00
Viktor Haag febd404323 fix version logic for major version > 0 2016-12-01 13:59:27 -05:00
Julien Nicoulaud 50cb5d1196
README improvements/fixes 2016-11-26 18:16:54 +01:00
Julien Nicoulaud 4c93cb02ec Add completion script for Software Collections (https://www.softwarecollections.org) 2016-11-26 17:45:54 +01:00
Syohei YOSHIDA f67a6bbc44 Merge pull request #469 from kastiglione/rg-types
rg: Declare `types` variable before assignment
2016-11-20 23:30:00 +09:00
Dave Lee 1c4d9c8660 rg: Declare `types` variable before use
Follow-up to https://github.com/zsh-users/zsh-completions/pull/468
2016-11-18 10:58:36 -08:00
Syohei YOSHIDA f662c85978 Merge pull request #468 from kastiglione/rg-arrays
rg: declare array variables
2016-11-18 16:30:58 +09:00
Dave Lee 047c265240 rg: declare array variables
Without this, with zsh version `zsh 5.0.8 (x86_64-apple-darwin15.0)`, this error occurs:

    unknown file attribute: \n

For more information see also: https://github.com/rust-lang-nursery/rustup.rs/issues/727
2016-11-17 15:15:24 -08:00
Syohei YOSHIDA 7a24a5e561 Merge pull request #466 from niko2342/git_journal_completion
Add completion script for git-journal
2016-11-12 22:57:44 +09:00
Nico Wagner 41f3e87c39 Added license header 2016-11-12 09:50:29 +01:00
Nico Wagner d820d70234 Add completion script for git-journal 2016-11-05 09:51:12 +01:00
Syohei YOSHIDA 44e821b703 Merge pull request #464 from pseyfert/cmake_module_path
[_cmake] add CMAKE_MODULE_PATH to common property names
2016-10-31 13:43:34 +09:00
Paul Seyfert 0d5cceb9d4 [_cmake] add CMAKE_MODULE_PATH to common property names 2016-10-30 00:04:49 +02:00
Syohei YOSHIDA cd61ca5054 Merge pull request #462 from arcizan/ripgrep
Add completion script for ripgrep
2016-10-20 01:52:43 +09:00
arcizan 06b09147eb Add completion script for ripgrep 2016-10-19 17:01:25 +09:00
Syohei YOSHIDA 61ce68a26a Merge pull request #461 from cmcaine/patch-1
Fix typos in _chattr
2016-10-18 01:43:59 +09:00
Colin Caine 116eebfedb Fix typos in _chattr 2016-10-17 17:36:39 +01:00
nicoulaj 2d1f793d94 Merge pull request #456 from JindrichPilar/trash-cli
Autocompletion for trash-cli
2016-10-16 14:38:25 +02:00
nicoulaj 04f4722da9 Merge pull request #452 from pseyfert/cmake
add --build option to _cmake
2016-10-16 14:37:39 +02:00
nicoulaj a727af2c5c Merge pull request #459 from blueyed/envdir
Add completion for envdir
2016-10-16 14:35:11 +02:00
nicoulaj ac5deec761 Merge pull request #453 from JindrichPilar/afew
Completion for afew
2016-10-16 14:34:56 +02:00
nicoulaj 09ac4b4722 Merge pull request #455 from JindrichPilar/archlinux-java
Completion for archlinux-java
2016-10-16 14:33:59 +02:00
Daniel Hahler c822cd07a5 Add completion for envdir
Ref: https://github.com/jezdez/envdir/issues/54
2016-10-16 14:23:28 +02:00
Syohei YOSHIDA b58606046a Merge pull request #458 from foudfou/master
Add `config` and `export` commands to _rkt.
2016-10-16 02:06:50 +09:00
foudfou b9ab8f5c5c Add `config` and `export` commands to _rkt. 2016-10-15 16:58:47 +02:00
Jindrich Pilar d7b0bc8fb2 Manualy reformated trash-cli 2016-10-09 11:13:27 +02:00
Jindrich Pilar 8d643ceaa5 Manualy reformated _afew 2016-10-09 10:39:42 +02:00
Jindrich Pilar 9c17dea89a Manually reformated _archlinux-java 2016-10-09 10:37:21 +02:00
Jindrich Pilar 116c85a7d7 Completion for trash-restore 2016-10-09 08:51:19 +02:00
Jindrich Pilar d9fc96f6a3 trash-put and trash have same competion 2016-10-09 08:45:22 +02:00
Jindrich Pilar 76a62e82f9 Completion for trash-empty 2016-10-09 08:43:02 +02:00
Jindrich Pilar b1b04b8d1a Completion for trash-list 2016-10-09 08:41:21 +02:00
Jindrich Pilar fffe5f114f Completion for trash-put 2016-10-09 08:38:50 +02:00
Jindrich Pilar 90662e912f Added long options into _afew 2016-10-08 17:42:41 +02:00
Jindrich Pilar a98235687e Added meta info snippet into _afew and reformated 2016-10-08 17:37:00 +02:00
Jindrich Pilar 6db432153e Added snippet into _archlinux-java and reformated 2016-10-08 17:35:57 +02:00
Jindrich Pilar 3c98c2d308 Completion for archlinux-java
Completion script for archlinux-java a tool for selecting default Java runtime (https://wiki.archlinux.org/index.php/java)
2016-10-07 18:22:16 +02:00
Jindrich Pilar 62592134de Completion for afew
Completion script for afew an initial tagging script for notmuch
mail.(https://github.com/teythoon/afew)
2016-10-06 18:40:35 +02:00
Paul Seyfert 7145daaeed import updates from pseyfert/zsh-cmake-completion@cc043d7ff6 2016-09-26 10:17:50 +02:00
Morgan Lieberthal b1b142620c Fix a typo in the cmake script 2016-09-26 10:17:45 +02:00
dannyzen f0438a05ed adding cloudfoundry compdef 2016-09-13 14:05:09 -04:00
Julien Nicoulaud 0713143ec8
#207: remove compdefs without a license header 2016-09-08 22:26:58 +02:00
Syohei YOSHIDA 3d6fb8c708 Merge pull request #449 from KrisShannon/dget
Small update to _dget
2016-09-09 00:22:39 +09:00
Kris Shannon c941533edb Add copyright notice 2016-09-05 18:24:46 +10:00
Kris Shannon 2063ac3079 Add --backup option and force --no-conf to be first option 2016-09-05 18:23:40 +10:00
Syohei YOSHIDA d04a31c48d Merge pull request #448 from jkraemer/rails-test
adds basic file completion for 'rails test' command
2016-09-03 21:31:21 +09:00
Jens Kraemer 5233dbed36 adds basic file completion for 'rails test' command 2016-09-03 11:10:34 +08:00
nicoulaj 4696b8e99c Merge pull request #447 from olejorgenb/util-linux-lsblk
lsblk completion
2016-09-01 21:47:36 +02:00
nicoulaj 12b0137289 Merge pull request #442 from syohex/fix-go-tool-pprof
Fix 'go tool pprof' completion error
2016-09-01 21:45:35 +02:00
nicoulaj 23968059f9 Merge pull request #440 from leoj3n/patch-2
Delete _github
2016-09-01 21:42:05 +02:00
nicoulaj adebe610b5 Merge pull request #437 from syohex/trailing-space
Remove trailing spaces
2016-09-01 21:41:24 +02:00
Ole Jørgen Brønner 3c7788c909 Add header (copyright, etc) and some description adjustments
- Comply with zsh/Etc/completion-style-guide
- Comply with zsh-completions contribution guidelines
2016-08-09 17:59:43 +02:00
Ole Jørgen Brønner fc617458c1 Complete major numbers too (--include/--exclude) 2016-08-09 17:40:44 +02:00
Ole Jørgen Brønner 1ecc42490e Only complete device files (and directories)
+ Some cleanup
2016-08-09 17:21:36 +02:00
Vadim A. Misbakh-Soloviov e09fa74f2d Merge pull request #439 from leoj3n/patch-1
Update Homebrew README link
2016-08-09 11:32:33 +07:00
Vadim A. Misbakh-Soloviov 8199c63da4 Merge pull request #443 from arcan1s/drop-docker-machine
Delete _docker-machine
2016-08-09 11:31:44 +07:00
Ole Jørgen Brønner db301d4b32 Complete output column names 2016-08-08 20:56:26 +02:00
Ole Jørgen Brønner 80bee25a20 Don't suggest same option twice 2016-08-08 19:54:39 +02:00
Ole Jørgen Brønner 99713ff544 Minor adjustments to the descriptions 2016-08-08 19:30:36 +02:00
Ole Jørgen Brønner 8c7c094558 Autogenerated the easy parts 2016-08-08 19:26:53 +02:00
Evgeniy Alekseev e81c1ec00f Delete _docker-machine
Upstream has own version of completions: https://github.com/docker/machine/blob/master/contrib/completion/zsh/_docker-machine. It is provided in the latest release (0.8.0) at least.
2016-08-05 13:55:03 +04:00
Syohei YOSHIDA c94729ac5c Fix 'go tool pprof' completion error 2016-08-02 10:37:36 +09:00
Joel Kuzmarski 4312917036 Delete _github
closes #438
2016-07-30 09:10:35 -05:00
Joel Kuzmarski 61d7fe987c Update Homebrew README link 2016-07-30 09:08:56 -05:00
Syohei YOSHIDA 24d3bd1c7c Remove trailing spaces 2016-07-20 17:58:50 +09:00
Julien Nicoulaud 4195d4f6ee
#207: Add license header to _cmake, with explicit permission from Scott Kroll <skroll@gmail.com> 2016-07-18 19:58:36 +02:00
nicoulaj 41ccde3637 Merge pull request #435 from michaelmior/rsvm
Add completion script for rsvm
2016-07-18 19:26:08 +02:00
nicoulaj 0441cdb5b1 Merge pull request #431 from lukechilds/patch-1
Update antigen command
2016-07-18 19:25:31 +02:00
nicoulaj 753ad965d3 Merge pull request #429 from JonasGroeger/patch-1
Update README.md
2016-07-18 19:25:02 +02:00
Michael Mior 1c95ef8afd Add completion script for rsvm 2016-07-16 10:40:15 -04:00
Luke Childs 675dc38100 Update antigen command 2016-06-30 22:30:58 +01:00
Jonas Gröger 644caff81f Update README.md 2016-06-27 14:56:08 +02:00
Julien Nicoulaud 551934dee2 #207: Add license header to @sorin-ionescu compdefs 2016-05-27 20:14:27 +02:00
nicoulaj 9f10736c48 Merge pull request #423 from markupboy/master
add license header to lunchy compdef
2016-05-27 20:06:31 +02:00
Blake Walters 9f2fea9180 add license header to lunchy compdef 2016-05-27 12:01:18 -06:00
Julien Nicoulaud 0f883ba365 #207: add license headers to compdefs from zsh-users mailing list 2016-05-27 19:52:25 +02:00
Julien Nicoulaud 7aa6322377 #207: add license header to _google (with permission of @dadrc) 2016-05-27 19:51:51 +02:00
Julien Nicoulaud b40b89e00b #207: delete heroku, no license header and author not reachable 2016-05-27 19:51:01 +02:00
nicoulaj d8fb351fa2 Merge pull request #422 from vasilykraev/drush-license-update
Add license to drush
2016-05-27 19:35:15 +02:00
nicoulaj 6ea83298e6 Merge pull request #421 from g5pw/master
Add license header for _port
2016-05-27 19:34:49 +02:00
nicoulaj 39e1b752f0 Merge pull request #420 from ilkka/patch-1
Add BSD license to docker machine completion
2016-05-27 19:34:14 +02:00
nicoulaj e0f10867e0 Merge pull request #419 from vhbit/patch-1
Added license header for _fab
2016-05-27 19:33:48 +02:00
nicoulaj 1441017b61 Merge pull request #418 from Soliah/master
Add license for _tmuxinator
2016-05-27 19:33:20 +02:00
nicoulaj 324eab5a8c Merge pull request #416 from peteryates/master
Added licence info for _ralio
2016-05-27 19:31:21 +02:00
Vasily Kraev 562c4516d3 Add license to drush 2016-05-16 10:07:15 +03:00
Aljaž "g5pw" Srebrnič 383f6efa1f Add license header for _port 2016-05-01 13:16:19 +02:00
Vadim A. Misbakh-Soloviov 69e89c5e4a Merge pull request #415 from arcan1s/master
Delete _ninja (handled by upstream)
2016-04-30 14:15:20 +07:00
Ilkka Laukkanen ce25039de3 Add BSD license to docker machine completion 2016-04-28 09:49:35 +03:00
Valerii Hiora f20a910a74 updated license header for _fab
As requested in #207
2016-04-27 15:34:40 +03:00
Christopher Chow 5a51750491 Add license for _tmuxinator 2016-04-27 21:47:49 +10:00
Peter Yates ccb92df731 Added licence info for _ralio 2016-04-27 09:38:28 +01:00
Evgeniy Alekseev 1cfc9a7743 Delete _ninja
[Upstream](https://github.com/ninja-build/ninja) already provides own well-maintained completion for some time. Moreover completion is already included to official packages in the latest release (was made at 29 Jun 2015) so it almost has no sense to include ninja completions to this package. (Completion has been added by @netromdk about Apr 4 2016.)
2016-04-27 11:13:15 +04:00
nicoulaj 17743e1e17 Merge pull request #410 from dserodio/docker-machine
Added all docker-machine commands as of 0.6.0
2016-04-26 21:22:11 +02:00
nicoulaj f60d445ae2 Merge pull request #406 from superlukas/permissions
Fix file permissions
2016-04-26 21:19:47 +02:00
nicoulaj 56f1f77f3d Merge pull request #405 from JindrichPilar/scrub
Completion for scrub
2016-04-26 21:19:30 +02:00
nicoulaj 7c5adfe84f Merge pull request #403 from xen0l/ansible
Update ansible, ansible-playbook and ansible-galaxy to correspond wit…
2016-04-26 21:18:43 +02:00
nicoulaj 66bc74123f Merge pull request #404 from netromdk/master
add completion function for ninja command
2016-04-26 21:17:54 +02:00
nicoulaj f0c92cef8b Merge pull request #401 from JindrichPilar/chattr
Completion for chattr
2016-04-26 21:17:26 +02:00
nicoulaj 7b86b613b3 Merge pull request #400 from JindrichPilar/jrnl
Completion for jrnl added
2016-04-26 21:16:54 +02:00
nicoulaj 825837152d Merge pull request #399 from fumikony/fumikony-patch-1
add --ssh-config-path completion for fab
2016-04-26 21:16:35 +02:00
nicoulaj 654252ff21 Merge pull request #398 from Cronos87/master
Now Artisan autocompletion display the text helper for each command
2016-04-26 21:16:22 +02:00
Daniel Serodio af8865165c docker-machine: added all commands for docker-machine 0.6.0 2016-04-07 18:26:36 -03:00
Daniel Serodio 6a0e2f7f8f docker-machine: sort commands to match `docker-machine help`
This makes is easier to see what's implemented and what's not
2016-04-07 16:49:21 -03:00
Lukas b74a9b8d64 Fix file permissions 2016-04-05 22:10:40 +02:00
Jindrich Pilar 8d8ceb5155 Completion for scrub 2016-04-05 19:12:53 +02:00
Jindrich Pilar 7177f78c35 Completion for chattr added 2016-04-04 21:30:59 +02:00
Morten Kristensen 37109f1ea2 Added license to ninja 2016-04-04 00:56:49 +02:00
Morten Kristensen fe5b1379fa add completion function for ninja command 2016-04-04 00:50:24 +02:00
Adam Števko 6f2744a955 Update ansible, ansible-playbook and ansible-galaxy to correspond with version 2.0.0.2 2016-04-03 23:28:25 +02:00
Massimiliano Torromeo 3e81c156e7 add completion function for rkt command 2016-03-26 18:54:22 +01:00
Jindrich Pilar 4de2ff25fb Completion for lsattr 2016-03-24 22:01:17 +01:00
Jindrich Pilar efab91370f Completion for jrnl added 2016-03-20 13:03:22 +01:00
Yohan Tambè de17e99788 Fixed categories name as command for Symfony Console 2016-03-15 14:37:55 +01:00
Fumitaka Yamane fb0760318d add --ssh-config-path completion for fab 2016-03-13 17:01:17 +09:00
Yohan Tambè 196a217413 Now Artisan autocompletion display the text helper for each command 2016-03-10 10:49:14 +01:00
nicoulaj 2082c7573f Merge pull request #393 from zsh-users/add-multirust
add completion function for multirust command
2016-03-08 21:32:42 +01:00
nicoulaj 7209a0f675 Merge pull request #392 from kastiglione/compilation-database
Complete cmake property CMAKE_EXPORT_COMPILE_COMMANDS
2016-03-08 21:32:14 +01:00
nicoulaj 3d4abf5bf1 Merge pull request #396 from JindrichPilar/pixz
Completion for pixz added
2016-03-08 21:32:01 +01:00
nicoulaj a38ddf9ebb Merge pull request #395 from JindrichPilar/dad
Completion for dad added
2016-03-08 21:31:50 +01:00
nicoulaj ee2ae5583d Merge pull request #394 from JindrichPilar/ufw
Completion for ufw added
2016-03-08 21:31:37 +01:00
Jindrich Pilar 27cee0f99b Completion fo pixz added 2016-02-27 21:29:22 +01:00
Jindrich Pilar 53ecfbe098 Completion of dad added 2016-02-26 19:51:31 +01:00
Jindrich Pilar 9b471ede68 Completion for ufw added 2016-02-26 16:33:53 +01:00
Hideo Hattori a0f8e1f6a5 add completion function for multirust command 2016-02-26 19:19:23 +09:00
Dave Lee 82280cdd24 Complete cmake property CMAKE_EXPORT_COMPILE_COMMANDS 2016-02-25 19:18:30 -08:00
nicoulaj 3a2bb8781d Merge pull request #390 from mitukiii/license
Add license to rails, rspec and mina
2016-02-25 20:34:54 +01:00
nicoulaj ab327651b0 Merge pull request #388 from JindrichPilar/cheat
Completion for Cheat
2016-02-25 20:34:28 +01:00
nicoulaj 2cd2548f5b Merge pull request #387 from JindrichPilar/diana_completion
Completion for Diana
2016-02-25 20:34:01 +01:00
Kazuya Takeshima 50c9457497 Add license to rails, rspec and mina 2016-02-22 18:25:16 +09:00
Jindrich Pilar 6d900a065f Completion for Cheat 2016-02-18 20:37:13 +01:00
Jindrich Pilar 89a6c71e16 Completion for Diana 2016-02-18 19:09:17 +01:00
nicoulaj 6953a4f892 Merge pull request #386 from Cronos87/master
Now autocompletion display the text helper for each command
2016-02-17 19:24:04 +01:00
Yohan Tambè 4b94fd2662 Now autocompletion display the text helper for each command 2016-02-17 09:00:24 +01:00
nicoulaj 99cc7ea060 Merge pull request #383 from pismute/master
add licenses to nvm, docpad
2016-02-09 19:21:17 +01:00
nicoulaj 85fa640195 Merge pull request #384 from black2754/openssl
cipher suite fix for openssl completion
2016-02-09 19:20:38 +01:00
black 1739324f8f cipher suite fix for openssl completion 2016-02-09 17:49:20 +01:00
Changwoo Park 3f46f9bd36 add a license to docpad 2016-02-09 14:17:43 +09:00
Changwoo Park 529cde136d add licenses to nvm 2016-02-09 14:17:16 +09:00
nicoulaj b10a35134a Merge pull request #382 from zsh-users/remote-boot2docker
deprecated boot2docker (switch to docker-machine)
2016-02-08 20:24:18 +01:00
hhatto 797785c347 deprecated boot2docker (switch to docker-machine) 2016-02-09 03:41:24 +09:00
nicoulaj e2bd26229c Merge pull request #381 from jozefizso/license_middleman
Added license to middleman
2016-02-08 18:42:46 +01:00
nicoulaj c8a5f15c60 Merge pull request #380 from nono/license
Add license to bundle, cap and showoff
2016-02-08 18:42:41 +01:00
nicoulaj a866596e36 Merge pull request #379 from arcan1s/master
Delete _envoy
2016-02-08 18:42:36 +01:00
Jozef Izso 87ace5ca43 Added MIT License to the middleman completion script 2016-02-08 14:51:59 +01:00
Bruno Michel 3de7464aa1 Add license to bundle, cap and showoff 2016-02-08 10:32:46 +01:00
Evgeniy Alekseev d8bee4223f Delete _envoy
envoy [1] already provides own completion for some time.

1. https://github.com/vodik/envoy
2016-02-08 06:03:50 +03:00
nicoulaj 066d9cc5cc Merge pull request #378 from black2754/openssl
Add completion for openssl
2016-02-07 14:25:36 +01:00
black 2c1f61140b Add completion for openssl 2016-02-07 13:00:37 +01:00
nicoulaj 4a148e01df Merge pull request #377 from lencioni/bower-license
Add license to bower completion
2016-02-06 17:15:39 +01:00
Joe Lencioni 7c5ed681f8 Add license to bower completion
In #207, I was asked to add the BSD license to this completion that I
wrote. This commit takes care of that.
2016-02-06 07:30:50 -08:00
nicoulaj 735ce19eae Merge pull request #376 from mafrosis/supervisorctl
Add license to _supervisorctl completion
2016-02-06 11:10:45 +01:00
Matt Black 708d19f64e Add license to _supervisorctl completion 2016-02-06 09:34:44 +00:00
nicoulaj c8eb8691e7 Merge pull request #375 from shtouff/feat-fleetctl
warranty & copyright information
2016-02-05 21:58:46 +01:00
Remi Paulmier 7a93f82859 warranty & copyright information 2016-02-05 20:53:58 +01:00
nicoulaj e58d9f5f1f Merge pull request #374 from zv/patch-1
Assign license to zsh-user/zsh-completions
2016-02-05 18:55:28 +01:00
zählen vertauschen 6e9afe4892 Assign license to zsh-user/zsh-completions 2016-02-04 20:27:04 -08:00
Julien Nicoulaud 173ae7249a #305: Remove brew completion, already maintained in Homebrew project 2016-02-04 23:19:06 +01:00
Julien Nicoulaud a6371f0ae9 #313: Remove docker completions, already maintained in docker project 2016-02-04 23:17:46 +01:00
Julien Nicoulaud 0e525e9093 Update contributing guidelines. 2016-02-04 23:02:26 +01:00
Julien Nicoulaud 12e3dd2d5f Remove some compdefs that are available directly in zsh 2016-02-04 22:58:59 +01:00
nicoulaj e70e7f8941 Merge pull request #373 from blueyed/xinput
Some improvements to xinput completion
2016-02-04 22:36:34 +01:00
nicoulaj 209a3aefb3 Merge pull request #371 from tieubao/master
Add completion for Elixir mix
2016-02-04 22:36:10 +01:00
nicoulaj e6354e099e Merge pull request #370 from vitorgalvao/patch-1
_brew: add 'style' to cask
2016-02-04 22:34:31 +01:00
nicoulaj a673e172bb Merge pull request #368 from WoLpH/master
Added ansible-vault completion
2016-02-04 22:34:13 +01:00
nicoulaj 7a3d28ecae Merge pull request #361 from zacchiro/master
Add service=... support to PostgreSQL completion
2016-02-04 22:32:43 +01:00
nicoulaj 4a23910f59 Merge pull request #360 from vitorgalvao/patch-1
_brew: alfred is no longer a valid cask command
2016-02-04 22:32:14 +01:00
nicoulaj 92b2d86dd4 Merge pull request #357 from rxwen/android_option
Add avd/sdk android option
2016-02-04 22:29:47 +01:00
nicoulaj b394898a48 Merge pull request #356 from zv/master
Introduced completion for setcap
2016-02-04 22:29:30 +01:00
nicoulaj bbd25b4838 Merge pull request #351 from mikkeloscar/manage.py
Add new commands available in latest django version
2016-02-04 22:27:53 +01:00
nicoulaj 9477811555 Merge pull request #355 from mikkeloscar/go
Add complete go 1.5 completion
2016-02-04 22:12:17 +01:00
nicoulaj 550a261d97 Merge pull request #350 from mmckinst/missing_licenses
add missing licenses
2016-02-04 22:09:43 +01:00
nicoulaj ad14cfb6e7 Merge pull request #347 from sarg/master
Ignore comments in ansible hosts
2016-02-04 22:02:41 +01:00
nicoulaj 62cdfbb7a3 Merge pull request #346 from nesneros/master
Use BSD and Gnu compatible option for tail
2016-02-04 22:02:21 +01:00
nicoulaj fd9da825c1 Merge pull request #336 from danteu/master
Add tarsnap completion
2016-02-04 21:59:52 +01:00
nicoulaj 5ba4006336 Merge pull request #329 from NigoroJr/bundle-install-options
Add completion for bundle install options
2016-02-04 21:59:07 +01:00
nicoulaj 5f2d959a48 Merge pull request #328 from shtouff/feat-fleetctl
a first version a completion file for fleetctl
2016-02-04 21:58:11 +01:00
nicoulaj 6c0afe156f Merge pull request #288 from mafrosis/supervisorctl
add supervisorctl completion
2016-02-04 21:57:15 +01:00
nicoulaj aa30277bfb Merge pull request #316 from itegebo/master
Add support for local gradle wrapper, gradlew
2016-02-04 21:55:27 +01:00
nicoulaj 97a35412f5 Merge pull request #304 from rjcoelho/master
Added rebar completion
2016-02-04 21:40:12 +01:00
nicoulaj a5e0d78647 Merge pull request #300 from supki/master
cabal-install 1.22
2016-02-04 21:38:54 +01:00
nicoulaj d4048769b3 Merge pull request #298 from vincentbernat/fix/adb-completion
Small fixes for adb completion
2016-02-04 21:38:07 +01:00
nicoulaj e32dadb9af Merge pull request #297 from ncaq/master
add gtk-launch completion
2016-02-04 21:37:32 +01:00
nicoulaj 7cc7b92810 Merge pull request #296 from patrikha/master
Fixed so that stat file now also works on OSX
2016-02-04 21:37:12 +01:00
nicoulaj 3b08409a77 Merge pull request #287 from maxandersen/mvntychomodes
add tycho.mode=maven support
2016-02-04 21:34:12 +01:00
nicoulaj e644452637 Merge pull request #284 from lineinthesand/patch-1
Completion for qdbus
2016-02-04 21:32:01 +01:00
nicoulaj a38b49aa4c Merge pull request #282 from grosendorf/feature/knife-diff-completion
added completion for knife diff
2016-02-04 21:31:10 +01:00
nicoulaj e9fd99a1cc Merge pull request #281 from loranger/master
[Add] Envoy completion & symfony console enhancements
2016-02-04 21:30:49 +01:00
Daniel Hahler 460fdafd78 xinput: improve completion of xinput_devices (with descs) 2016-02-03 01:12:08 +01:00
Daniel Hahler 9f3a538414 xinput: do not leak variables 2016-02-03 00:27:14 +01:00
Mikkel Oscar Lyderik ccd4bbf0ea autocomplete files in -html= 2016-01-29 22:18:03 +01:00
Han Ngo 0ce85b45a2 Add completion for Elixir mix 2016-01-23 20:37:40 +07:00
Vítor Galvão 7bbf2ef5c6 _brew: add 'style' to cask 2016-01-17 12:17:30 +00:00
Rick van Hattem 8805d1d982 added ansible-vault completion 2016-01-12 14:18:28 +01:00
Mikkel Oscar Lyderik 47ba50d992 Update copyright/authors info 2016-01-12 00:35:06 +01:00
Vincent Bernat d2682f69e8 adb: first argument of push can be any file
Regular files can be pushed, not only directories.
2015-12-31 14:19:31 +01:00
Vincent Bernat 0280621bc9 adb: make sideload only propose zip archives
This seems the only usage of sideload. The completion will take ZIP
archives. However, when there is no match, any file will be completed.
2015-12-31 14:19:31 +01:00
Vincent Bernat 08bead065a adb: add sideload as a valid device command 2015-12-31 14:19:31 +01:00
Stefano Zacchiroli a812877745 Add service=... support to PostgreSQL completion 2015-11-06 09:56:40 -08:00
Vítor Galvão bc82365a3e _brew: alfred is no longer a valid cask command 2015-10-21 01:20:00 +01:00
mafro b0b0f1c85b add supervisorctl completion 2015-10-16 06:57:00 +01:00
rxwen ff3182eff4 Add avd/sdk android option 2015-10-07 20:43:30 +08:00
zv 9ca66cf7d4 Introduced completion for setcap
setcap is the default capability manipulation tool in Linux and is a
widely used as a standard for capability control on other POSIX systems.
2015-10-06 16:52:15 -07:00
Mikkel Oscar Lyderik e2ab16ac90 Add complete go 1.5 completion 2015-10-05 20:27:21 +02:00
Mikkel Oscar Lyderik 73b1140d41 Add new commands available in latest django version 2015-10-01 22:55:45 +02:00
Mark McKinstry 28a94a97e8 add copyright for rvm
ref issue #207

copied from https://github.com/rvm/rvm/blob/master/LICENSE 2015-09-30
2015-09-30 23:20:18 -04:00
Mark McKinstry 468b8d5c00 add copyright for _setup.py
ref issue #207

copied from
https://github.com/hhatto/zsh_completions/blob/master/LICENSE 2015-09-30
2015-09-30 23:12:43 -04:00
Mark McKinstry dada11cdda add copyright to files copied from oh-my-zsh
ref issue #207

copied from
https://github.com/robbyrussell/oh-my-zsh/blob/master/MIT-LICENSE.txt
2015-09-30
2015-09-30 23:08:23 -04:00
Mark McKinstry b87cc49d5a add copyright for _git-flow
ref issue #207

copied from
https://github.com/bobthecow/git-flow-completion/blob/master/LICENSE
2015-09-30
2015-09-30 23:02:00 -04:00
Mark McKinstry 91d8928293 add copyright for _brew
ref issue #207

copied from https://github.com/Homebrew/homebrew/blob/master/LICENSE.txt 2015-09-30
2015-09-30 22:58:47 -04:00
Sergey Trofimov 2aef6131c2 Ignore comments in ansible hosts 2015-09-14 22:28:34 +03:00
Hideo Hattori c2dde89fb3 Merge pull request #345 from termoshtt/stack
Add completion for stack (haskell project builder)
2015-09-11 10:38:40 +09:00
Toshiki Teramura 37622ff583 Add license info 2015-09-11 04:00:03 +09:00
Hideo Hattori 2ab6ea9748 Merge pull request #341 from wkentaro/brew-cask-completion
Add completion for brew-cask
2015-09-10 15:18:26 +09:00
Hideo Hattori 693ce2b477 Merge pull request #327 from starcraftman/new_ack_ag
Updating ack & ag.
2015-09-10 14:45:07 +09:00
Jan Sorensen c0b6e2e510 Use BSD and Gnu compatible option for tail
Use 'tail -n +2' instead of 'tail +2'. Semanctics are the
same but 'tail +2' is not accepted by Gnu tail.
2015-08-30 21:16:54 +02:00
Toshiki Teramura 5dea5df508 Add completion for stack (haskell project builder) 2015-08-17 20:07:15 +09:00
Vadim A. Misbakh-Soloviov fb1bf12319 Merge pull request #344 from rxwen/improve-issue-338
improve fix for issue-338
2015-08-13 20:20:35 +05:00
rxwen 091ef8a74e improve fix for issue-338
- replace all occurence of : to \:
- consider the case there are multiple tcp adb connections
        $ adb devices
        List of devices attached
        192.168.0.139:5555      device
        192.168.0.225:5555      device
  all of colon has to be replaced, otherwise, we get this wrong result:
        $ adb -s 192.168.0.
        192.168.0.139:5555  -- connected device
        192.168.0.225       -- 5555:connected device
2015-08-13 21:35:13 +08:00
Kentaro Wada b1d9c1ba6f Add completion for brew-cask 2015-08-09 22:01:41 +09:00
Vadim A. Misbakh-Soloviov 4894cf8c5f Merge pull request #340 from zsh-users/issue-338
escape semicolon in _adb devices list. Fixes #338
2015-08-09 00:04:56 +05:00
Vadim A. Misbakh-Soloviov 520922c227 escape semicolon in _adb devices list. Fixes #338 2015-08-09 00:04:34 +05:00
Hideo Hattori ea729a975b Merge pull request #332 from blueyed/bower-update
bower: add unregister, --version, --no-color
2015-07-29 12:52:10 +09:00
Daniel Teunis e11bd776bb Add newline at eof 2015-07-28 21:59:04 +02:00
Daniel Teunis c5c5fe7f37 Add tarsnap completion 2015-07-28 21:56:48 +02:00
Daniel Hahler 11215f13c9 bower: add login
Ref: https://github.com/zsh-users/zsh-completions/pull/332#issuecomment-125086483
2015-07-28 20:29:22 +02:00
Hideo Hattori 25d1555535 Merge pull request #331 from dark-panda/add-pg-restore
pg_restore completion
2015-07-27 14:09:46 +09:00
Hideo Hattori 06df54dc4b Merge pull request #299 from Soliah/master
Update tmuxinator completions
2015-07-27 13:53:18 +09:00
Daniel Hahler 665e2f29ce bower: add unregister, --version, --no-color 2015-06-29 12:45:22 +02:00
J Smith 705800ca20 pg_restore completion 2015-06-28 21:40:18 -04:00
Naoki Mizuno 3d32977b0f Add completion for bundle install options
The following completions for options are added:
* with
* clean
* full-index
* jobs
* force
* no-cache
* no-prune
* retry
* sheband
* standalone
* trust-policy

See:

https://github.com/bundler/bundler/blob/master/man/bundle-install.ronn

for option details.
2015-06-18 14:47:47 -04:00
Jeremy Pallats/starcraft.man 3ffbe650c1 Updating ack & ag.
* Guard both ack & ag from completing if command doesn't exist.
* Allow some opts to repeat like ignore.
* Update descriptions.
* Ack was missing some opts present in base 2.00.
* Ag cleanup based on better understanding.
2015-06-11 14:13:30 -04:00
Remi Paulmier 044c4018d1 a first version a completion file for fleetctl 2015-06-11 18:42:11 +02:00
Hideo Hattori d723fe922a Merge pull request #324 from syohex/misspellings
Correct misspellings
2015-06-08 18:04:20 +09:00
Syohei YOSHIDA d6fdb720e2 Correct misspellings 2015-06-08 16:05:14 +09:00
Hideo Hattori 687d0aed3c Merge pull request #301 from bosr/ansible
ansible, ansible-playbook, ansible-galaxy completions
2015-06-08 11:24:32 +09:00
Hideo Hattori a231af1dab Merge pull request #279 from llua/master
fixed offlineauto and health check
2015-06-02 20:52:17 +09:00
Hideo Hattori 73b3d62408 Merge pull request #274 from Marthym/add_docker
Add Docker completion from Felix Riedel & Vincent Bernat
2015-06-02 20:36:50 +09:00
Hideo Hattori 9759359e7a Merge pull request #302 from ilkka/docker-compose
Completion for docker-compose
2015-06-02 20:33:57 +09:00
Hideo Hattori 1f074882a4 Merge pull request #290 from ypid/master
Made it a oh-my-zsh plugin and documented how to use it.
2015-06-02 01:00:22 +09:00
Hideo Hattori 3f05ec8e54 Merge pull request #320 from gtmanfred/master
salt provides its own zsh completion now
2015-06-02 00:41:09 +09:00
Hideo Hattori 6d1ecb7d7e Merge pull request #323 from 10litrov/master
Update Vagrant completion
2015-06-02 00:34:37 +09:00
Hideo Hattori dc5fa36566 Merge pull request #309 from superlukas/master
Replace non-breaking space with space
2015-06-01 21:54:31 +09:00
Hideo Hattori 8975ac4dc6 Merge pull request #317 from glidenote/add_license_information
add license infomation
2015-06-01 21:39:53 +09:00
Hideo Hattori eb65f43207 Merge pull request #319 from starcraftman/better_ag
Update _ag completion
2015-06-01 21:39:09 +09:00
Ivan Phrolov 47a63cdfa3 Update Vagrant completion 2015-06-01 16:54:32 +10:00
Jeremy Pallats/starcraft.man b16fc9b44f Sort by longopt. 2015-05-31 23:17:34 -04:00
Jeremy Pallats/starcraft.man d6e67e6acf Allow multiple single letter opts. 2015-05-31 22:00:36 -04:00
Daniel Wallace 02f573b8fd salt provides its own zsh completion now
https://github.com/saltstack/salt/blob/develop/pkg/zsh_completion.zsh

No need for one provided here
2015-05-27 18:55:02 -05:00
Jeremy Pallats/starcraft.man bc2c9112b6 Since unsetting, use normal all caps name. 2015-05-27 14:44:35 -04:00
Jeremy Pallats/starcraft.man 8509bcaab6 Update _ag completion up until 0.30.
* Simplified parsing of filetypes, no more awk-fu!
* Added version based checks to complete only existing features
* Added missing opt --passthrough
* Lowercased all strings not 2 sentences
2015-05-27 09:26:16 -04:00
Akira Maeda 2dc253f82d add license infomation 2015-05-25 13:32:35 +09:00
Ian Tegebo 495833c379 Add support for local gradle wrapper, gradlew 2015-05-24 12:38:22 -07:00
Romain Bossart 2df5d243cf add completions for ansible-galaxy 2015-04-18 08:19:41 +02:00
Romain Bossart ec0535a255 parses groups of groups 2015-04-18 08:19:41 +02:00
Romain Bossart 3bfd530fda terser hostfile fallback mechanism 2015-04-18 08:19:41 +02:00
Romain Bossart 5903ef0e7b ansible completions 2015-04-18 08:19:41 +02:00
Lukas 759b19b54d Replace non-breaking space with space 2015-04-08 22:48:42 +02:00
Ilkka Laukkanen 6d3d38bae1 Fix common args documentation 2015-03-23 21:13:38 +02:00
Rui Coelho a466260c7c Remove license 2015-03-18 17:01:35 +00:00
Rui Coelho 33b5333653 Add header 2015-03-18 16:56:03 +00:00
Rui Coelho 8169cf1935 Added rebar completion 2015-03-16 10:59:39 +00:00
Hideo Hattori 68c949470e Merge pull request #303 from ilkka/docker-machine
Completion for Docker Machine
2015-03-13 02:20:32 +09:00
Ilkka Laukkanen c604f6ce63 Completion for Docker Machine 2015-03-06 17:32:47 +02:00
Ilkka Laukkanen 215dcdd32e Completion for docker-compose 2015-03-06 16:21:20 +02:00
Matvey Aksenov 98d2806723 cabal-install 1.22
* Add `cabal user-config` command

  * Add `cabal sandbox delete-source` subcommand

  * Drop nhc98- and hugs-related flags

  * Added ghcjs-related flags

  * New flags for `configure`, `fetch`, `freeze`, `install`, `register`, and `repl`
2015-02-28 09:15:58 +00:00
Christopher Chow ae67d3c525 Update tmuxinator completions
tmuxinator 0.6.10 provides a completions sub command to use for
completion purposes.
2015-02-28 10:20:31 +11:00
ncaq ccc2bd5703 add gtk-launch completion 2015-02-26 23:03:42 +09:00
Patrik Hartlén 027943eda6 Fixed so that stat file now also works on OSX 2015-02-24 08:25:27 +01:00
Hideo Hattori 6cc78eb382 Merge pull request #295 from superbrothers/fix-typo
_boot2docker: s/defalut/default/g
2015-02-20 23:19:31 +09:00
Kazuki Suda 0fd21c99dc _boot2docker: s/defalut/default/g 2015-02-20 21:46:01 +09:00
Hideo Hattori ed964013e2 Merge pull request #273 from tricknotes/heroku-open
heroku: Add completion `heroku open`
2015-02-02 13:35:51 +09:00
Robin Schneider 5089cd661b
Made it a oh-my-zsh plugin and documented how to use it. 2015-01-31 15:26:35 +01:00
Hideo Hattori d6561fcaa4 add contributor 2015-01-29 15:27:37 +09:00
Hideo Hattori 61f24a63ea Merge pull request #285 from gkze/master
Add --sort-keys/-S option to _jq
2015-01-29 15:24:59 +09:00
gkze dd23e319ee Typo 2015-01-28 21:59:42 -08:00
gkze dfa1f7c6aa Corrections 2015-01-28 20:54:25 -08:00
gkze 36a54e16e1 Ading new options from the 1.4 release 2015-01-28 20:18:14 -08:00
Hideo Hattori b23dd4b3b6 Merge pull request #289 from hhatto/boot2docker
remove bracket for boot2docker
2015-01-29 12:02:01 +09:00
Hideo Hattori dbe105b3e0 remove bracket 2015-01-29 11:37:46 +09:00
Max Rydahl Andersen 651b6e7b40 add tycho.mode=maven support 2015-01-25 00:19:43 +01:00
gkze 5300336e77 Add --sort-keys/-S support to _jq 2015-01-18 17:38:41 -08:00
Laurent Goussard d9a96f4274 [Add] Homestead completion 2015-01-13 16:38:41 +01:00
lineinthesand 6f7a7bda5e Completion for qdbus
I wrote a completion function for qdbus (a command line tool for
communicating with dbus-enabled programs, like kmix, krusader,
pulseaudio…) which I want to share in the hope that it will be useful.
2015-01-10 00:00:25 +01:00
Laurent Goussard 4faaed9f6c [Upg] Allow to invoke console from project instead of app directory 2015-01-07 10:39:53 +01:00
Laurent Goussard e5ea9c45be [Add] Envoy completion 2015-01-06 15:51:11 +01:00
Gabriel Rosendorf 9d118e8e3b added completion for knife diff 2015-01-06 09:30:12 -05:00
Eric Cook fea591f41e fixed offlineauto and health check 2015-01-02 11:12:06 -05:00
Frédéric Combes 84ac7e1dcb Add Docker completion from Felix Riedel & Vincent Bernat 2014-12-01 10:20:17 +01:00
Ryunosuke SATO d81be8c787 heroku: Add completion `heroku open` 2014-11-28 17:47:34 +09:00
Tim Harder 9f0a0e907a Update Gentoo related info
The repo for gentoo specific completions has moved and zsh-completions
is now in the main tree.
2014-11-21 04:02:24 -08:00
nicoulaj c731dbe311 Merge pull request #265 from unixorn/add-antigen-instructions
Add instructions for antigen
2014-11-19 08:25:41 +01:00
nicoulaj f9ac8cfb7c Merge pull request #267 from ohcibi/master
Add projects to list of suggestions when tabbing `mux` with no params
2014-11-19 08:24:23 +01:00
Vincent Breitmoser 123a400720 add hledger completion 2014-11-16 08:16:07 +01:00
Vadim A. Misbakh-Soloviov 31645f0545 Merge pull request #264 from duthils/cask
completion for cask
2014-11-10 15:25:39 +06:00
Tobias Witt ea4576cdd2 Add projects to list of suggestions when tabbing `mux` with no params 2014-10-17 12:00:12 +02:00
Joe Block 94e9631d59 Add instructions for antigen 2014-10-05 17:20:00 -07:00
Sebastien Duthil 86dbad26c5 update cask subcommands 2014-10-05 13:45:33 -04:00
Sebastien Duthil eefc2ff7ed cask: conform to style guide
* no line longer than 79 characters
* indent with 2 spaces
* no capitals in description
2014-10-01 17:45:13 -04:00
Sebastien Duthil aad31f4468 completion for cask
import from github.com/cask/cask, discussed in PR cask/cask#244
2014-10-01 17:43:08 -04:00
Vadim A. Misbakh-Soloviov 08afea0e23 Deleting _envoy (upstream-maintained). Fixes #263 2014-09-30 04:59:54 +07:00
Vadim A. Misbakh-Soloviov 4251bd8bb4 Deleting _docker (upstream-maintained). Fixes #254 2014-09-30 04:58:55 +07:00
Vadim A. Misbakh-Soloviov 595be660c6 README.md: Fixing gentoo overlay info 2014-09-27 23:25:33 +07:00
Vadim A. Misbakh-Soloviov 0a1b2212fd README.md: Fixing gentoo overlay info 2014-09-27 23:25:03 +07:00
Vadim A. Misbakh-Soloviov 890f370145 _pip: removed to obey repo rules:
Upstream (as of 1.4.1) maintain it's own completion
(can be generated by pip/runner.py completion --zsh)

Fixes #194

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-09-27 18:02:01 +07:00
nicoulaj 5e3151d03a Merge pull request #249 from starcraftman/ag_add_completions
Add ag flags based on version 0.24.0.
2014-09-24 23:06:17 +02:00
nicoulaj 9cb3b5c2d5 Merge pull request #257 from vincentbernat/fix/virsh
Various virsh fixes
2014-09-24 22:42:59 +02:00
Hideo Hattori 9dc7328011 Merge pull request #261 from mitukiii/rails
Add 'references' to candidates of migration field
2014-09-22 11:41:47 +09:00
Hideo Hattori 56ab24b3c1 Merge pull request #262 from mitukiii/rspec
Add '--exclude-pattern' option
2014-09-22 11:07:51 +09:00
Kazuya Takeshima be061e6715 Add '--exclude-pattern' option 2014-09-18 15:28:46 +09:00
Kazuya Takeshima 5658941cad Add 'references' to candidates of migration field 2014-09-17 19:51:57 +09:00
Hideo Hattori bc87980ffd Merge pull request #258 from felixbuenemann/fix-pgsql-utils-typo
Fix typo in _pgsql_utils --disable-dollar-quoting
2014-09-16 23:08:50 +09:00
Hideo Hattori 45ce272126 Merge pull request #259 from lexinator/vagrant-improvments
call vagrant directly to get hostnames/box names
2014-09-16 22:57:27 +09:00
Alexius Ludeman 0c35a85dca pull latest bits from oh-my-zsh.git
-pulled in current _vagrant from oh-my-zsh.git
    e7fdb028b5/plugins/vagrant/_vagrant
2014-09-14 09:55:23 -07:00
Alexius Ludeman 9309a82d84 call vagrant directly to get hostnames/box names
-no longer makes the assumption that files are parseable, just call vagrant
    directly to get the information for status|box list
-cache results until Vagrantfile changes
2014-09-14 09:55:22 -07:00
Vincent Bernat 1bcfd00579 virsh: inactive domains don't have an ID 2014-09-03 01:52:31 +02:00
Vincent Bernat 18330b0137 virsh: replace use of compadd with _describe
compadd is more low-level and doesn't setup completion descriptions
correctly. Notably, the description is not put in bold.
2014-09-03 01:52:31 +02:00
Vincent Bernat 29c11456af virsh: make completion work with older versions of virsh
Older versions of virsh doesn't have the `--name` option. Moreover when
completing running domains, the title was "name domains" instead of
expected "running domains".
2014-09-03 01:52:31 +02:00
Felix Bünemann b405c9fae4 Fix typo in _pgsql_utils --disable-dollar-quoting 2014-08-28 18:53:41 +02:00
Hideo Hattori 732cbc81e2 Merge pull request #255 from vincentbernat/feature/rfkill
Completion for `rfkill`
2014-08-27 11:07:14 +09:00
Vincent Bernat 21768854d8 Completion for `rfkill` 2014-08-26 23:01:10 +02:00
Hideo Hattori e5112fa532 Merge pull request #250 from RobSis/completion-nl
Added completion for _nl
2014-08-22 01:31:00 +09:00
Robert Siska ee85a0ad72 Removed uncessesary brackes 2014-08-21 18:00:04 +02:00
Mario Fernández 8d3c8e6541 Merge pull request #245 from loranger/master
[Fix] awk regex for all php console based commands
2014-08-20 17:45:32 +02:00
Mario Fernández f3a4bdac44 Merge pull request #246 from lucy/remove-mpv
Remove mpv completion
2014-08-20 17:45:16 +02:00
Mario Fernández 8d966828d3 Merge pull request #252 from systemfreund/master
add docker completions from oh-my-zsh
2014-08-20 17:44:38 +02:00
Mario Fernández e5977a5ddb Merge pull request #253 from hhatto/boot2docker
add boot2docker completion
2014-08-20 17:43:51 +02:00
Hideo Hattori 235c9b7590 add boot2docker completion 2014-08-14 13:34:21 +09:00
Hideo Hattori 409c9763f1 Merge pull request #247 from mitukiii/rspec
Add rspec completion
2014-08-13 13:58:06 +09:00
Vadim A. Misbakh-Soloviov 44f06a846b Merge pull request #251 from mrueg/master
Remove Gentoo's completions according to the project's rules. (Maint by upstream). Fixes #218. Fixes #248
2014-08-13 10:22:25 +07:00
Ömer Yildiz 561ab23750 add docker completions from oh-my-zsh 2014-08-11 14:43:27 +02:00
Manuel Rüger 56e55bb3ee
Remove Gentoo's completions according to the project's rules. They are maintained upstream: https://github.com/gentoo/gentoo-zsh-completions 2014-08-09 18:01:24 +02:00
Robert Siska b917aff935 Added return statement 2014-08-05 17:07:09 +02:00
Robert Siska 8c431f76ea Added completion for _nl 2014-08-05 17:04:00 +02:00
Jeremy Pallats/starcraft.man b73beab621 Add ag flags based on ag 0.24.0.
* Added filetype completion with descriptions generated by parsing list-file-types.
* Added all other static flags not present.
2014-08-01 15:31:05 -04:00
Kazuya Takeshima 0aa199e91f Add rspec completion 2014-07-24 22:24:05 +09:00
lucy 552d7c2ef0 Remove mpv completion
This is very outdated and maintained upstream.
2014-07-22 21:44:34 +02:00
Laurent Goussard 33edc548de [Fix] Force no-ansi for all 2014-07-21 11:09:09 +02:00
Laurent Goussard 97402d4ab8 [Fix] awk regex for all php console based commands 2014-07-17 18:40:19 +02:00
Julien Nicoulaud 03869b1157 typo 2014-07-16 22:14:17 +02:00
Julien Nicoulaud c75296de9c Update contributing rules 2014-07-16 22:07:11 +02:00
nicoulaj d5d057ba72 Merge pull request #244 from zsh-users/revert-215-master
Revert "Add completion for pass (password-store)"
2014-07-16 22:05:53 +02:00
nicoulaj 01aca13747 Revert "Add completion for pass (password-store)" 2014-07-16 22:04:13 +02:00
nicoulaj 15c71ec31e Merge pull request #241 from petrikoz/master
Update Teamocil completion
2014-07-16 22:00:48 +02:00
nicoulaj d124d0f097 Merge pull request #240 from g5pw/master
_port completion enhancement
2014-07-16 21:58:23 +02:00
nicoulaj c74b5816ad Merge pull request #239 from tricknotes/update-heroku
Update completion for heroku
2014-07-16 21:57:46 +02:00
nicoulaj d849e52fb5 Merge pull request #235 from vasilykraev/drush
Drush
2014-07-16 21:57:13 +02:00
nicoulaj e3137cbb6d Merge pull request #233 from lencioni/bower
Add Bower completion
2014-07-16 21:56:42 +02:00
nicoulaj a117a33263 Merge pull request #229 from fishilico/watch
Add watch completion
2014-07-16 21:56:00 +02:00
nicoulaj c9ace578af Merge pull request #217 from pablospe/master
Added '_cmake' completion
2014-07-16 21:53:32 +02:00
nicoulaj 509a6fba8c Merge pull request #226 from ajh17/gem-completion-bugfix
Use tpope's fork of the original _gem completion gist.
2014-07-16 21:49:31 +02:00
nicoulaj d050dc04d4 Merge pull request #222 from philipdexter/master
Add ghc, ghci, and ghc-pkg completion
2014-07-16 21:42:48 +02:00
Hideo Hattori 059df4ec05 Merge pull request #224 from supki/cabal-completion-update
Update _cabal completion
2014-07-07 01:24:13 +09:00
Hideo Hattori 15cb792fa5 Merge pull request #237 from withgod/vagrant-add-global-status
added global-status.
2014-07-07 01:13:56 +09:00
Petr Zelenin 44553eaaeb Update Teamocil completion 2014-07-06 12:07:10 +06:00
Aljaž "g5pw" Srebrnič de9abc631e _port: Fix completion of next arguments 2014-06-26 17:58:36 +02:00
Aljaž "g5pw" Srebrnič e580a15f99 _port: complete more subcommands
Add completions for outdated, sync and selfupdate subcommands.
2014-06-26 17:58:01 +02:00
Aljaž "g5pw" Srebrnič 062e23c1bf No need to use the ->string format
If we have only one function to call fro completion, just call it. Also, remove
local declaration, since we don't use the ->string form.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 8daa84f28f A better cache policy for _port
This compares modification times of the main PortIndex for all ports and
registry.db for installed ports.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 04e2e85de8 Use the -q flag when calling port
The -q flag suppresses any output other than port names, eliminating the need to
further modify output.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 77df22a969 No need to set cache policy in the main function
The caching policy style for _port can be set in _port_dispatch, as it is the
one that uses caching.
2014-06-26 17:57:59 +02:00
Aljaž "g5pw" Srebrnič 0b791a2f50 Add description to each port target
Also, remove targets used only in interactive mode, like 'exit' or 'cd'
2014-06-26 17:57:59 +02:00
Aljaž "g5pw" Srebrnič 8dc4b8a490 Better port upgrade completion
When upgrading, pseudo-portnames can be used. Also, add upgrade options to
completion choices.
2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič a2765bc27c Explicitly typeset arrays 2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič 42aace253f Use correct command to get installed ports
This fixes a copy-paste error when we completed any port name instead of
installed ones
2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič 8842103478 Use capitalized names in option description 2014-06-26 17:57:57 +02:00
Ryunosuke SATO 571a0031a6 Update completion for heroku
* Update descriptions
* Add `config:get`
* Rename `config:add` -> `config:set`
* Rename `config:remove` -> `config:unset`

These changes are described at:
https://devcenter.heroku.com/articles/config-vars#setting-up-config-vars-for-a-deployed-application
2014-06-26 01:47:10 +09:00
withgod ff5a0d6d5f added global-status. 2014-06-13 13:58:57 +09:00
Vadim A. Misbakh-Soloviov 3280bc4274 added _virsh completion (thanks to original author)
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-06-08 03:49:00 +07:00
Vadim A. Misbakh-Soloviov 3bc7485252 added _virsh completion (thanks to original author)
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-06-08 03:37:20 +07:00
Hideo Hattori 9f3ee864c9 Merge pull request #232 from glidenote/add_rubocop_completion
add rubocop completion
2014-05-29 01:28:55 +09:00
Akira Maeda ac32fd2e63 fix option for version 0.22.0 2014-05-29 00:50:20 +09:00
Hideo Hattori 6fda37dcb1 Merge pull request #227 from bosr/_vagrant_update
_vagrant plugin completion update
2014-05-29 00:33:27 +09:00
Hideo Hattori f48b3e3096 Merge pull request #231 from CircleCode/patch-1
[Vagrant] update box list completion
2014-05-28 23:56:30 +09:00
Matthieu Codron 090a9b0044 [Vagrant] update box list completion
relocate `$HOME/.vagrant` to `$HOME/.vagrant.d` and use `$VAGRANT_HOME` if defined
2014-05-28 16:48:34 +02:00
Hideo Hattori a6d6234058 Merge pull request #234 from tacahilo/vagrant-added-underscore-pattern-to-vmlist
[Vagrant] Add pattern of underscore to vm_list
2014-05-28 13:00:57 +09:00
Takahiro OKUMURA 8a5d1a7768 [Vagrant] Add pattern of underscore to vm_list 2014-05-27 12:49:08 +09:00
Joe Lencioni 3c55bfa02a Add Bower completion
http://bower.io/
2014-05-26 10:52:47 -07:00
Akira Maeda 37f5ebaf04 add rubocop completion 2014-05-26 19:16:17 +09:00
Vasily Kraev 5aa086d25f Update commands in help list 2014-05-17 22:03:25 +04:00
Vasily Kraev 6952f96ee2 Use global args array 2014-05-17 22:03:00 +04:00
Vasily Kraev 1a51c426ed Drush devel & features commands 2014-05-17 21:49:46 +04:00
Vasily Kraev 3340251b18 Drush ard/arr commands 2014-05-17 21:49:12 +04:00
Vasily Kraev 75b4c450d5 Add drush completion, init commit 2014-05-16 14:12:30 +04:00
Nicolas Iooss 7c23834890 Add watch completion 2014-05-05 20:00:46 +02:00
Romain Bossart 2822ce5c73 _vagrant plugin completion update 2014-05-01 18:08:31 +02:00
Akshay Hegde eac824a161 Use tpope's fork of the original _gem completion gist.
- Does not fail when you try to tab complete the first time.
- Seems to be much faster.
2014-04-29 17:25:13 -07:00
Philip Dexter 217c35e1fa Update _ghc options to ghc 7.8 2014-04-25 10:33:42 -04:00
Matvey Aksenov d34904f725 Update _cabal completion
Adds support for cabal-install-1.20 features:

  * new `cabal freeze` command

  * new `cabal exec` command

  * new options (e.g. `--allow-newer`)
2014-04-20 19:53:03 +04:00
Philip Dexter ecd3631650 Add ghc, ghci, and ghc-pkg completion 2014-04-15 10:34:46 -04:00
Mario Fernández dae8cb844a Merge pull request #220 from petere/kitchen-completion
Add kitchen completion
2014-04-14 13:55:44 +02:00
Peter Eisentraut 68046d83d7 Add kitchen completion 2014-04-14 07:41:11 -04:00
Mario Fernández cf9135e1e6 Merge pull request #214 from WoLpH/master
Added new version of zfs completion in sync with FreeBSD 10.0 man page
2014-04-13 12:08:16 +02:00
Mario Fernández 16e38f8f2e Merge pull request #210 from loranger/master
[Add] Enable composer completion
2014-04-13 12:07:54 +02:00
Laurent Goussard f12c638bd7 [Add] Envoy completion 2014-04-13 10:53:49 +02:00
Laurent Goussard 6ef029c3cc [Add] symfony/Console completion 2014-04-13 10:53:21 +02:00
Laurent Goussard 7f813c193e [Add] Artisan completion 2014-04-13 10:53:00 +02:00
Laurent Goussard 1c18daf1d5 [Upg] Add copyright header and cleanp 2014-04-13 10:51:23 +02:00
Laurent Goussard 818fe9c8e1 [Upg] Add copyright header and contextual command definition 2014-04-13 10:46:39 +02:00
Laurent Goussard 468ae11b7d Merge branch 'master' of github.com:zsh-users/zsh-completions 2014-04-13 10:33:44 +02:00
Rick van Hattem d3fa6d9fb2 Update _zfs 2014-04-13 00:57:07 +02:00
Mario Fernández 0e553f729e Merge pull request #219 from lucapette/patch-1
Fix typo in _jekyll completion
2014-04-12 13:09:52 +02:00
Mario Fernández 0e6e4d5507 Merge pull request #216 from wernight/master
Add VBoxManager modifyhd auto-complete.
2014-04-12 13:08:36 +02:00
Mario Fernández 0265542b64 Merge pull request #203 from TimofeyTitovets/master
add completion for xinput and shutdown
2014-04-12 13:07:43 +02:00
Mario Fernández 4ab5826a5d Merge pull request #205 from arcan1s/patch-2
Update _yaourt
2014-04-12 13:03:44 +02:00
Mario Fernández 74ee44cb42 Merge pull request #212 from IgorTimoshenko/feature/phing
Added completion script for Phing
2014-04-12 13:03:11 +02:00
Mario Fernández 6f79c98502 Merge pull request #215 from zakkak/master
Add completion for pass (password-store)
2014-04-12 13:01:05 +02:00
Mario Fernández a1fa7768a6 Merge pull request #209 from sorin-ionescu/rename-attach-to-atach
Rename attach to atach
2014-04-12 13:00:14 +02:00
Mario Fernández acff08bec8 Merge pull request #211 from lukesteensen/patch-1
Add 'services' command to homebrew completion
2014-04-12 12:59:49 +02:00
Mario Fernández 072ad18eb7 Merge pull request #206 from arcan1s/patch-4
Update README.md
2014-04-12 12:59:15 +02:00
Joe Bloggs 6b0f09ddb2 Completion for ps command, for iw and a how-to guide for creating
completion files
2014-04-12 12:53:41 +02:00
lucapette deb6a6fa4e Fix typo in _jekyll completion
As per subject
2014-03-29 18:43:38 +01:00
Pablo Speciale f64b1183a3 Added '_cmake' completions.
Original github repository: https://github.com/skroll/zsh-cmake-completion
2014-03-27 22:21:43 -03:00
Werner Beroux 48d1cb8e9c Add VBoxManager modifyhd auto-complete. 2014-03-22 14:25:56 +01:00
Foivos 545c7b6d6b Add completion for pass (password-store)
This is a copy of https://github.com/zx2c4/password-store/blob/master/contrib/pass.zsh-completion
2014-03-19 04:44:48 +02:00
Rick van Hattem 05483ab4c2 Added new version of zfs completion in sync with FreeBSD 10.0 man page 2014-03-15 11:43:53 +01:00
Vadim A. Misbakh-Soloviov 107bdaba20 Fix _eselect completion (to latest eselect syntax changes)
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-02-23 03:23:58 +07:00
Igor Timoshenko d3e55a2c1a Fixed typo 2014-02-12 16:25:53 +00:00
Igor Timoshenko c0ebcbe56b Added completion script for Phing 2014-02-12 16:08:44 +00:00
Luke Steensen 5edeb23f10 Add 'services' command to homebrew completion 2014-02-11 21:22:44 -06:00
Laurent Goussard 74cd5edbf4 [Add] Glances completion 2014-02-06 15:22:51 +01:00
Laurent Goussard a4492f0f25 [Add] Enable composer completions 2014-02-06 15:20:18 +01:00
Sorin Ionescu abc6dccadc Rename attach to atach 2014-01-28 18:35:27 -05:00
Evgeniy Alexeev 14232ac66d Update README.md
Edited links to Archlinux packages (the link to *-git is out-of-date, zsh-completion now available in [community])
2014-01-09 03:35:16 +03:00
Evgeniy Alexeev 7187ffd3b7 Update _yaourt
I have the next function in .zshrc:

      pacman () {
        /usr/bin/sudo /usr/bin/pacman $* && echo "$*" | grep -q "S\|R" && rehash
      }

And I have the next line in `/etc/yaourtrc`:

      PACMAN="/usr/bin/pacman"

But if I try to get autocomplite for `yaourt -Ss` (for example) it requires a sudo password. With this patch path to `pacman` (`PACMAN` variable) will be read from the configuration file and this command will not require the password.

It is a correct variant :)
2014-01-08 14:54:56 +03:00
Timofey 2b6e045b24 add base completion for xinput
Completions for button and property
2014-01-04 09:37:42 +02:00
Timofey 4bd7b7547f add support for shutdown command 2014-01-04 09:35:58 +02:00
Julien Nicoulaud 4ffedd4ac8 Merge pull request #198 from TimofeyTitovets/master
added simple completion for exportfs
2014-01-02 00:43:12 -08:00
Timofey 538ac13e48 added simple completion for exportfs 2014-01-02 02:35:58 +02:00
Julien Nicoulaud 6d05992de1 Merge pull request #193 from xuhdev/improve-brew-link
Improve the link command in _brew.
2013-12-24 03:33:38 -08:00
Julien Nicoulaud a46792b006 Merge pull request #195 from babysnakes/fix-vagrant-completions
Fix vagrant vm name matching
2013-12-24 03:33:06 -08:00
Haim Ashkenazi 7bf946eba1 Fix vagrant vm name matching:
- escaping of single quotes
- match older vagrant files which uses keywords as vm names.
2013-12-23 22:08:39 +02:00
Hong Xu 24ead6192e Improve the link command in _brew. 2013-12-16 12:30:13 -08:00
Hideo Hattori 1d6a2aa024 Merge pull request #190 from hhatto/improve-managepy
improve manage.py completion #188
2013-11-27 09:52:11 -08:00
hhatto 6ea9474bae improve manage.py completion #188 2013-11-23 21:24:41 +09:00
hhatto 3c3e6a653b improved startproject sub-command for manage.py #189 2013-11-23 05:50:49 +09:00
Hideo Hattori 475587dc97 Merge pull request #189 from aronj/patch-1
_manage.py support for startproject
2013-11-22 12:11:38 -08:00
Aron Janarv 49d925054a _manage.py support for startproject
Description from https://docs.djangoproject.com/en/dev/ref/django-admin/
2013-11-22 20:44:23 +01:00
Julien Nicoulaud 2791693ece Merge pull request #183 from xuhdev/improve-brew
Improve homebrew completion.
2013-11-19 11:45:42 -08:00
Julien Nicoulaud 270e7e102d Merge pull request #185 from benohara/master
Fix matching for vm names im Vagrant file when using dashes or underscor...
2013-11-19 11:45:22 -08:00
Julien Nicoulaud f46c990c40 Merge pull request #150 from SiSGroup/dget
Add first draft of dget completion
2013-11-19 11:44:59 -08:00
Vincent Breitmoser 85cf623d7e Merge branch '_mpv' 2013-11-15 13:07:36 +01:00
Vincent Breitmoser 35b5cf0152 _mpv: complete --profile 2013-11-15 13:07:24 +01:00
Vadim A. Misbakh-Soloviov 820772a839 _eselect: fix function existance checking.
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2013-11-15 02:15:18 +07:00
Vincent Breitmoser 88b268e1a9 Merge branch '_mpv' 2013-11-14 19:34:33 +01:00
Vincent Breitmoser cb059a45ae _mpv: simple parsing for complex parameters 2013-11-14 19:33:13 +01:00
Vincent Breitmoser fc1249fc78 _mpv: add credit notice 2013-11-14 19:29:31 +01:00
Vincent Breitmoser dba027f91a _mpv: add show-advanced option, enable by default on -- 2013-11-14 19:27:48 +01:00
Vincent Breitmoser 6384a4ea3d _mpv: more specialized parameter handling 2013-11-14 18:48:22 +01:00
Vincent Breitmoser cfc4738ad9 _mpv: fix --ao and --vo, ditch unused $state cases 2013-11-14 17:19:09 +01:00
Vincent Breitmoser 78478451bb _mpv: add suppressed option groups, and more work on parameter args 2013-11-14 17:09:04 +01:00
Vincent Breitmoser 062a0734c3 _mpv: add parameter types 2013-11-14 16:43:44 +01:00
Vincent Breitmoser c2bf84027c _mpv initial version 2013-11-14 15:42:14 +01:00
Vadim A. Misbakh-Soloviov de603da79a _eselect news function rewriten. NB: todo mark inside. Fixes #186
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2013-11-12 01:00:44 +07:00
Ben O'Hara 0ad97c79dd Fix missing redirect for no file 2013-11-09 00:58:24 +10:00
Vincent Breitmoser 918b318cc5 Merge branch 'httpie' 2013-11-06 16:54:44 +01:00
Vincent Breitmoser 5524dac94d _httpie: more _arguments updates 2013-11-06 16:54:17 +01:00
Vincent Breitmoser 512b6357e1 _httpie: fix for -pH problem 2013-11-06 16:54:15 +01:00
Vincent Breitmoser dbd9c214fc _httpie: use NORMARG for positioning 2013-11-06 16:54:12 +01:00
Vincent Breitmoser b94ba8198c _httpie: improve _arguments definitions, add print flags 2013-11-06 16:54:10 +01:00
Vincent Breitmoser 90be119649 _httpie: properly work with parameters 2013-11-06 16:54:02 +01:00
Vincent Breitmoser 15690458fd _httpie: method is first argument, always 2013-11-06 16:53:56 +01:00
Ben O'Hara 4ea8b2548e Fix matching for vm names im Vagrant file when using dashes or underscores 2013-11-07 00:05:04 +10:00
Vincent 210b3c1304 Merge pull request #184 from glidenote/add_httpie_completion
add httpie completion
2013-11-05 08:54:17 -08:00
Akira Maeda 3f401f5a1d add httpie completion http://httpie.org 2013-11-05 13:46:17 +09:00
Hong Xu 39fe5829d1 Improve homebrew completion. 2013-10-31 19:26:36 -07:00
hhatto 897060e332 update _setup.py 2013-10-15 01:03:52 +09:00
hhatto 54eed22221 remove local site-package path 2013-10-15 00:54:45 +09:00
hhatto ec3b9c8954 fix #181 2013-10-15 00:49:46 +09:00
Massimiliano Torromeo d992bd0ab9 Add salt completion 2013-10-03 19:07:13 +02:00
Julien Nicoulaud 43a3bc1b96 Merge pull request #168 from PaBLoX-CL/update-rvm-completion
Update rvm completion
2013-09-26 17:33:05 -07:00
Julien Nicoulaud f1434c0983 Merge pull request #179 from supki/update-cabal-completion.1
Update cabal completion
2013-09-26 17:30:38 -07:00
Matvey Aksenov 951823c68c Update cabal completion
Added support for the new cabal-install-1.18 features:

  * `cabal repl`, `cabal run` and `cabal sandbox` commands are added

  * `cabal get` is an alternative name for the `cabal unpack` command

  * some commands received new options

Also some unrelated enhancements:

  * generic `--with-PROG`, `--PROG-options`, and `--PROG-option`
  are replaced with real options (e.g. `--with-gcc`, `--gcc-options`,
  `--gcc-option` and the like) where possible

  * `cabal install` completion supports both [hackage] cabal packages
  and local .cabal files as arguments now
2013-09-26 01:39:05 +04:00
Hideo Hattori 9609ebb826 Merge pull request #176 from tt/improve-heroku-completion
Improve `heroku` completion
2013-09-19 04:10:47 -07:00
Hideo Hattori ac57d0737d Merge pull request #178 from wonbyte/homebrew_reinstall_completion
tab completion for homebrew reinstall command
2013-09-19 03:38:37 -07:00
Greg Sieranski cd9bde7846 tab completion for homebrew reinstall command 2013-09-18 14:56:15 -04:00
Hideo Hattori 0cab208c4f Merge pull request #172 from glidenote/add_gist_completion
add gist completion
2013-09-18 06:28:17 -07:00
Hideo Hattori 835b564b04 Merge pull request #174 from wonbyte/audit_tab_homebrew
add audit command to homebrew tab completion
2013-09-18 06:20:57 -07:00
Hideo Hattori b3d8ee87a5 Merge pull request #171 from syohex/support-new-option
add newly options
2013-09-18 00:22:22 -07:00
Troels Thomsen af8ee4b78d Add completion entry for "plugins:update" command 2013-09-12 20:35:09 -07:00
Greg Sieranski d6dd5f1d89 add audit command to homebrew tab completion 2013-09-05 11:01:29 -04:00
Akira Maeda 632a949a27 add gist completion 2013-09-05 20:23:51 +09:00
Syohei YOSHIDA 4a0e577c45 add newly options 2013-09-05 12:42:09 +09:00
Pablo Olmos de Aguilera Corradini ab126e1aa5 Update rvm completion 2013-08-29 22:14:00 -04:00
Vadim A. Misbakh-Soloviov 5b15bec0e4 some fixes and additions for optirun completion
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2013-08-27 19:28:41 +07:00
Julien Nicoulaud bfb970cad3 Merge pull request #165 from jozefizso/feature_middleman
Completion for middleman
2013-08-20 03:21:49 -07:00
Jozef Izso 4963f12ff3 Basic command completion for middleman tool. 2013-08-18 17:42:41 +02:00
Julien Nicoulaud 662229f6f0 Merge pull request #164 from mbrgm/add-veewee
Add veewee completion
2013-08-08 07:13:44 -07:00
Julien Nicoulaud a427edeaa4 Merge pull request #163 from farseer90718/master
add jekyll completion
2013-08-08 07:13:19 -07:00
Julien Nicoulaud bd2698727d Merge pull request #162 from glidenote/wemux-completion
Add wemux completion.
2013-08-08 07:12:52 -07:00
Julien Nicoulaud 578b93093e Merge pull request #160 from dhcmrlchtdj/master
Update pip completion
2013-08-08 07:10:47 -07:00
Julien Nicoulaud b6e091d7e6 Merge pull request #159 from mollifier/jq-completion
Add jq completion.
2013-08-08 07:10:24 -07:00
Julien Nicoulaud d2a96dbe02 Merge pull request #158 from jozefizso/brew_untap_completion
Completion for brew untap command.
2013-08-08 07:09:29 -07:00
Julien Nicoulaud c6c78792d1 Merge pull request #156 from mitukiii/rails
Update rails completion.
2013-08-08 07:09:11 -07:00
Julien Nicoulaud c918fb80fe Merge pull request #155 from dongweiming/master
Add celery completion
2013-08-08 07:08:34 -07:00
Marius Bergmann 5188228749 Add veewee completion 2013-08-08 15:09:40 +02:00
farseer90718 c35a6318b6 add jekyll completion 2013-08-07 12:13:27 +08:00
glidenote 2d222b5325 Add wemux completion. 2013-07-30 15:18:05 +09:00
niris b91db13f5c add 'wheel' to pip completion 2013-07-26 17:58:01 +08:00
niris 52c096280e Update pip completion 2013-07-19 22:13:34 +08:00
mollifier 23b74941a4 Add jq completion. 2013-07-14 05:04:01 +09:00
Kazuya Takeshima 0cd7ec957b Add jbuilder generator completion. 2013-07-10 00:40:14 +09:00
Kazuya Takeshima 80ca790ee5 Create generator command dynamically. 2013-07-10 00:36:28 +09:00
Jozef Izso 9325fb1c03 Completion for brew untap command. 2013-07-08 13:06:43 +02:00
Mario Fernández c0a2c0c933 Merge pull request #157 from dongweiming/update_coffee
Update coffee completion
2013-06-28 00:25:13 -07:00
dongweiming bf701062de Update coffee completion 2013-06-28 15:18:46 +08:00
Kazuya Takeshima 5e499ab416 Add cache policy. 2013-06-27 19:45:08 +09:00
Kazuya Takeshima 4f16845159 Change cache name to use application root directory name. 2013-06-27 19:39:01 +09:00
Kazuya Takeshima 9cab90cf96 Support rails 4. 2013-06-26 15:26:57 +09:00
dongweiming b588bd4065 Add celery completion 2013-06-25 22:18:06 +08:00
Julien Nicoulaud ad361c5abd Merge pull request #154 from panth0r/master
Add --date option for "yaourt -Q"
2013-06-17 10:33:49 -07:00
Michael Kory Woods a83eb6e0fb add '--devel' to sync option
"--devel" exists in query, but "yaourt -Syu --dev<tab><tab>" issn't autocompleting "--devel" (not sure it should based on it being in the query call, just wanted to mention it).
2013-06-16 16:39:47 -05:00
Michael Kory Woods abd8ca4b05 add '--date' to opts_query_modifiers 2013-06-16 16:33:31 -05:00
Julien Nicoulaud 169e3dee9f Merge pull request #153 from mitukiii/rails
Add rails completion.
2013-06-05 22:57:27 -07:00
Julien Nicoulaud ebadc245c8 Merge pull request #151 from nmeum/master
Updated ssh-copy-id completion
2013-06-05 22:54:21 -07:00
Kazuya Takeshima 156f94c5e4 Add rails completion. 2013-06-06 13:59:59 +09:00
nmeum d068f2858b Added missing command-line flags to ssh-copy-id completion
See ssh-copy-id(1)
2013-05-31 23:30:23 +02:00
Julien Nicoulaud 53dd086f56 Merge pull request #148 from luolimao/primus
added _primus completion for primusrun
2013-05-31 10:20:09 -07:00
Kris Shannon 8b51f48221 Add first draft of dget completion 2013-05-31 13:03:50 +10:00
Limao Luo 6d10579ba0 added _primus completion for primusrun 2013-05-26 17:22:24 -04:00
Julien Nicoulaud 0de5be492d Merge pull request #145 from mitukiii/mina
Add mina completion.
2013-05-26 02:34:52 -07:00
Julien Nicoulaud f2d0ee66c2 Merge pull request #144 from graywh/patch-1
Separate values for bundle help
2013-05-26 02:34:31 -07:00
Julien Nicoulaud a45c2760bf Merge pull request #141 from luolimao/yaourt
Added new Yaourt options
2013-05-26 02:30:06 -07:00
Julien Nicoulaud 0a46b6d482 Merge pull request #140 from peteryates/master
Added completion for Ralio
2013-05-26 02:29:26 -07:00
Julien Nicoulaud 2daa8c6d1d Merge pull request #138 from zhaocai/feature/_ack
Update ack to work with version 2+
2013-05-26 02:28:51 -07:00
Julien Nicoulaud f038f70214 Merge pull request #137 from zhaocai/feature/_gem
Use cache-policy for _gem
2013-05-26 02:28:04 -07:00
Julien Nicoulaud f43b425224 Merge pull request #136 from markcornick/vagrant_plugin
Update vagrant completion with "plugin" subcommand
2013-05-26 02:27:07 -07:00
Kazuya Takeshima 1c667bfebb Add mina completion. 2013-05-24 16:11:06 +09:00
Peter Yates e737b496a7 Removed reference to git flow 2013-05-22 10:15:37 +01:00
Will Gray a59f5c3a0a Separate values for bundle help 2013-05-20 17:08:55 -04:00
Limao Luo b1aa5e2f1e separate branches 2013-05-11 11:31:29 -04:00
Limao Luo 1f177e5680 more consistent completion messages 2013-05-11 11:28:19 -04:00
Limao Luo aa58f2f8b9 added new opts 2013-05-11 11:27:21 -04:00
Limao Luo 7ecc156ef7 Merge branch 'master' of https://github.com/zsh-users/zsh-completions 2013-05-11 11:10:36 -04:00
Zhao Cai dab8775218 (ack) handle ack version string containing commit sha1 2013-05-10 07:05:24 -04:00
Peter Yates 5977c94275 Specify the help text for the -t option 2013-05-02 16:30:43 +01:00
Peter Yates 2a8463b814 Remove superfluous create/delete options 2013-05-02 16:28:39 +01:00
Peter Yates bd5f9232db Added completion for ralio, a rally client 2013-05-02 16:04:23 +01:00
Zhao Cai 75bf6f64c2 (gem) Add open command 2013-04-29 20:25:40 -04:00
Zhao Cai d3a6d8fbcc Check GEM_HOME to compare recency 2013-04-29 20:19:50 -04:00
Zhao Cai d2ce821cc8 Use cache-policy for _gem 2013-04-29 20:19:50 -04:00
Zhao Cai d94703edf8 Update ack to work with version 2+ 2013-04-28 22:46:52 -04:00
Mark Cornick 92238046cc Update vagrant completion with "plugin" subcommand
This subcommand was added in Vagrant 1.1.
2013-04-26 12:38:48 -07:00
Julien Nicoulaud 9cbd2b6762 Merge pull request #134 from zhaocai/feature/_gem
_gem: update for browse, edit and clone commands
2013-04-11 15:02:40 -07:00
Julien Nicoulaud d29381c6fa Merge pull request #133 from zhaocai/brew
_brew update
2013-04-11 15:02:28 -07:00
Julien Nicoulaud d516916824 Merge pull request #128 from pcasaretto/add-remote-argument-to-heroku
Add 'remote' argument to heroku
2013-04-11 15:02:05 -07:00
Zhao Cai 7e02122470 _gem: update for browse, edit and clone commands 2013-04-11 17:39:32 -04:00
Paulo L F Casaretto 779b6020b6 Namespace git commands under heroku 2013-04-11 14:18:51 -03:00
Zhao Cai 3ebbd136df _brew update
1. use _call_program
2. formulae completion for search
3. formulae completion for upgrade
4. add pin/unpin command
2013-04-11 11:33:42 -04:00
Julien Nicoulaud 5a4ab02e40 Merge pull request #132 from mollifier/svm-completion
Add svm(Scala Version Manager) completion.
2013-04-10 11:24:33 -07:00
Julien Nicoulaud 28a2710f99 Merge pull request #130 from g5pw/master
Overhauled port command completion
2013-04-10 11:24:10 -07:00
mollifier 4fc0541ad1 Add svm(Scala Version Manager) completion. 2013-04-10 06:20:10 +09:00
Vincent Breitmoser 7f739d0f1b _id3v2: complete at least one option before filenames 2013-04-06 23:02:35 +02:00
Vincent Breitmoser 590ba19ead _id3: small update in descriptions and logic
use present tense. also, complete at least one option before filenames,
calling id3 with just file arguments is not a valid operation.
2013-04-06 23:01:45 +02:00
Vincent Breitmoser 6c0e222b0c _id3v2: initial commit 2013-04-06 22:51:04 +02:00
Vincent Breitmoser 513546f59f _id3: initial commit 2013-04-03 01:27:02 +02:00
Aljaž "g5pw" Srebrnič 8d9cdfc589 Add completion for rev-upgrade subcommand 2013-04-02 21:56:07 +02:00
Aljaž "g5pw" Srebrnič 7b412ed1ba Fix bug introduced in 3e6040e01
I can't call a function from _arguments
2013-04-02 21:53:38 +02:00
Aljaž "g5pw" Srebrnič 3e6040e01d Do not use state mechanism
Call a dispatch function instead, simplifying the nested select case.
2013-04-01 00:30:04 +02:00
Aljaž "g5pw" Srebrnič 54ed122d25 Set cache-policy before calling _arguments 2013-04-01 00:30:04 +02:00
Aljaž "g5pw" Srebrnič 810840e0e0 Remove unnecessary parenthesis escaping 2013-04-01 00:29:38 +02:00
Aljaž "g5pw" Srebrnič 1168563524 _port: add upgrade completions
Port upgrade completes only outdated ports.
2013-03-31 23:47:35 +02:00
Aljaž "g5pw" Srebrnič 4aa41e2267 Use message instead of guard
Use _message instead of _guard when completing the search pattern.
2013-03-31 23:47:35 +02:00
Mark Cornick ef8d5806c4 Add completion for knife user commands
These commands were added in Chef 11.0.0.
2013-03-31 23:47:35 +02:00
Vincent Breitmoser 2b9822ef8f _dzen2: initial commit 2013-03-31 15:35:54 +02:00
Aljaž "g5pw" Srebrnič f2cff3dbf3 Use own cache policy
This checks modification dates of the repository database and completion cache
and refreshes the latter if it is older than the database.
2013-03-24 22:31:08 +01:00
Aljaž "g5pw" Srebrnič d8a2e94fa0 Use native caching system 2013-03-24 22:29:51 +01:00
Aljaž "g5pw" Srebrnič 2224f3ae71 Moved port_select function to bottom 2013-03-24 22:26:32 +01:00
Limao Luo 1ddccf7dc6 Merge branch 'master' of https://github.com/zsh-users/zsh-completions 2013-03-24 13:56:54 -04:00
Julien Nicoulaud 6502b28815 Merge pull request #131 from markcornick/knife_user_completion
Add completion for knife user commands
2013-03-24 01:56:09 -07:00
Mark Cornick a017d3f212 Add completion for knife user commands
These commands were added in Chef 11.0.0.
2013-03-23 10:20:43 -04:00
Aljaž "g5pw" Srebrnič 6483c0c3a1 Overhauled port command completion
Port command completion got smarter. It can now complete paths for the
provides subcommand, and complete pseudo-portnames.

It will complete all ports or only installed ones (for example, when
completing for the uninstall command).

It will complete the select subcommand with appropriate values.
2013-03-20 08:22:38 +01:00
Paulo L F Casaretto d5674edf44 Add remote argument completions
This was copied from _git-flow
2013-03-13 13:47:23 -03:00
Paulo L F Casaretto 4ed5855317 Add 'remote' argument to heroku
Also add the shorter -a switch to the app argument
2013-03-12 23:23:40 -03:00
Limao Luo 37d227ce42 primus completion for primusrun 2013-03-09 18:59:15 -05:00
Julien Nicoulaud 19e8985f8e Merge pull request #127 from glidenote/ag-completion
Add ag(the silver search) completion.
2013-02-28 09:48:50 -08:00
Akira Maeda 75bca1455c Add ag(the silver search) completion. 2013-02-28 19:36:13 +09:00
Julien Nicoulaud b938075ef8 Merge pull request #126 from cknadler/master
Fix issues relative link in README
2013-02-27 04:42:00 -08:00
Chris Knadler 47fac212e6 Fix issues relative link in README 2013-02-26 18:22:17 -08:00
Vincent Breitmoser e1e89ad4f8 _logger: initial commit 2013-02-26 22:36:24 +01:00
Julien Nicoulaud c597ff8f2e Merge pull request #125 from benohara/master
Update git-flow completion
2013-02-26 10:53:06 -08:00
Vincent Breitmoser 6958a4b251 _socat: initial commit
From here:

3c564c995b/_socat
2013-02-24 17:58:22 +01:00
Ben O'Hara 2314bc327a Update git-flow completion
Add missing options and commands for support branches.
2013-02-24 18:44:09 +10:00
Julien Nicoulaud a182b009d0 Merge pull request #124 from brandt/master
Use $ACKRC if set, otherwise use $HOME/.ackrc
2013-02-21 04:55:50 -08:00
J. Brandt Buckley dfb3eaa2f6 Use $ACKRC if set, otherwise use $HOME/.ackrc
The $ACKRC environmental variable allows a user to specify a path to his or her Ack config file. If not set, Ack looks for a file in the default location (~/.ackrc).

This update makes ack completion follow that same behavior.
2013-02-20 18:45:42 -08:00
Julien Nicoulaud c7cdfaad3d Merge pull request #123 from mcaserta/master
Improved SBT completion
2013-02-17 06:55:14 -08:00
Mirko Caserta c73f8b0c80 Improved sbt completion 2013-02-17 15:49:50 +01:00
Tony Sloane 09fa1239d8 Update _scala for Scala version 2.10.0 2013-02-10 19:15:34 +11:00
Julien Nicoulaud 8b651e577c Merge pull request #120 from amouravski/patch-1
Fixed a broken link in README.
2013-02-07 05:12:51 -08:00
Andrei Mouravski 285b2e2494 Fixed a broken link.
_ack was not pointing to the right place, because it seems src/ was added after the README was written.

Uses the new relative path syntax.
2013-02-06 16:55:37 -08:00
Julien Nicoulaud 13715a7e50 Merge pull request #118 from mitukiii/gem
Fix to quote _files -g option argument
2013-01-27 08:17:19 -08:00
Julien Nicoulaud 3e76c561f5 Merge pull request #119 from cirilloblu/patch-1
Update src/_adb
2013-01-27 08:16:59 -08:00
cirillo darkblu ea348969fa Update src/_adb 2013-01-20 18:21:36 +01:00
Kazuya Takeshima 095a8b7080 Fix to quote _files -g option argument 2013-01-16 13:13:48 +09:00
Julien Nicoulaud 2166ab8a6c Merge pull request #115 from pismute/docpad
Add docpad completion
2012-12-19 10:31:20 -08:00
Julien Nicoulaud b5aca65b2a Merge pull request #117 from pismute/nvm
Add nvm completion
2012-12-19 10:30:56 -08:00
Changwoo Park 0d4c8712b0 Add nvm completions 2012-12-03 09:43:05 +09:00
Mario Fernández 144967fe69 Merge pull request #116 from supki/cabal-completion
Add cabal-install completion.
2012-11-29 02:27:50 -08:00
Matvey Aksenov aad3ce6ca7 Add cabal-install completion. 2012-11-29 12:51:39 +04:00
Changwoo Park 47bc3f75c8 Fix typo. 'nvm' -> 'docpad' 2012-11-28 09:20:34 +09:00
Mario Fernandez 0783dccfac Add completions for _mussh 2012-11-27 17:47:22 +01:00
Changwoo Park 8934613b1c Add docpad completion 2012-11-28 00:09:33 +09:00
Mario Fernández c9d9512df4 Merge pull request #114 from Poapfel/master
Updated bundle completions
2012-11-12 00:48:10 -08:00
Poapfel 09ced5f209 Added outdated command to bundler completions 2012-11-10 21:05:09 +01:00
Poapfel b15dbf4cd5 Added platform command to bundler completions 2012-11-10 21:03:33 +01:00
Mario Fernández f7c0f031ca Merge pull request #113 from dakrone/master
Update leiningen completions
2012-10-24 02:10:52 -07:00
Lee Hinman af82b11240 update leiningen completion for lein 2 2012-10-23 10:56:33 -06:00
Julien Nicoulaud b70c7f9799 Merge pull request #109 from markcornick/knife_environment
Update _knife with environment sub-commands
2012-10-04 05:09:39 -07:00
Julien Nicoulaud 0c587caa36 Merge pull request #110 from markcornick/chef_x_remote
Update _chef_X_remote functions for current knife output
2012-10-04 05:09:22 -07:00
Mark Cornick 6b8d711aec Update _chef_X_remote functions for current knife output
The format of the output from "knife X list" commands has changed since
this completion script was written.
2012-10-02 12:59:40 -04:00
Mark Cornick 3c833c6491 Fix _chef_environments_remote for current knife output
All of these functions need to be fixed, but I'll fix the others in a
different branch.
2012-10-02 12:55:08 -04:00
Mark Cornick 31ec2904f0 Update _knife with environment sub-commands
Environments were added in Chef 0.10.
2012-10-02 12:46:15 -04:00
Julien Nicoulaud 5031fbd255 Merge pull request #108 from spk/_gem_push
Added gem push completion.
2012-10-01 10:40:12 -07:00
Laurent Arnoud 104562a111 Added gem push completion. 2012-10-01 00:29:10 +02:00
Julien Nicoulaud 9ef8d2f088 Merge pull request #107 from potix2/brew-update
Update brew completion to the latest version
2012-09-25 08:44:27 -07:00
Katsunori Kanda 3bea535045 Update brew completion to the latest version 2012-09-23 02:41:21 +09:00
Julien Nicoulaud 1fe53ac70c Merge pull request #106 from dserodio/pg_dumpall
pg_dumpall completion (PostgreSQL)
2012-09-21 07:18:53 -07:00
Julien Nicoulaud 0d0bc8c8b5 Merge pull request #105 from ehamberg/patch-1
Fix completion of “vagrant ssh-config”
2012-09-21 07:18:39 -07:00
Daniel Serodio e9f3294210 pg_dumpall completion 2012-09-21 10:24:37 -03:00
Erlend Hamberg fc4c46365a Fix completion of “vagrant ssh-config”
The completion for vagrant incorrectly listed “ssh_config” as a command. This should be “ssh-config”.
2012-09-21 15:57:42 +03:00
208 changed files with 30468 additions and 8029 deletions

View File

@ -1,5 +1,5 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://EditorConfig.org
; More information at https://editorconfig.org/
root = true

10
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,10 @@
<!-- Thank you so much for your PR! -->
<!-- Please provide a general summary of your changes in the title above. -->
<!-- If submitting a new compdef, please check it is compliant with our contributing guidelines and tick the boxes: -->
- [ ] This compdef is not already available in zsh.
- [ ] This compdef is not already available in their original project.
- [ ] I am the original author, or I have authorization to submit this work.
- [ ] This is a finished work.
- [ ] It has a header containing authors, status and origin of the script.
- [ ] It has a license header or I accept that it will be licensed under the terms of the Zsh license.

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
# zsh word code files
*.zwc
# IDE files
.vscode/
.idea/

39
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,39 @@
# Contributing
## How to Contribute to zsh-completions
Contributions are welcome, just make sure you follow the guidelines:
* Completions are not accepted when already available in zsh.
* Completions are not accepted when already available in their original project.
* Please do not just copy/paste someone else's completion, ask before.
* Partially implemented completions are not accepted.
* Please add a header containing authors, status and origin of the script and license header if you do not wish to use the Zsh license (example [here](src/_tox)).
* Any reasonable open source license is acceptable but note that we recommend the use of the Zsh license and that you should use it if you hope for the function to migrate to zsh itself.
* Please try to follow the [Zsh completion style guide](https://github.com/zsh-users/zsh/blob/master/Etc/completion-style-guide).
* Please send one separate pull request per file.
* Send a pull request or ask for committer access.
## Contributing Completion Functions to Zsh
The zsh project itself welcomes completion function contributions via
[github pull requests](https://github.com/zsh-users/zsh/),
[gitlab merge requests](https://gitlab.com/zsh-org/zsh/) or via patch
files sent to its mailing list, `zsh-workers@zsh.org`.
Contributing to zsh has the advantage of reaching the most users.
## Including Completion Functions in Upstream Projects
Many upstream projects include zsh completions.
If well maintained, this has the advantage that users get a completion
function that matches the installed version of their software.
If you are the upstream maintainer this is a good choice. If the project
already includes completions for bash, fish, tcsh, etc then they are
likely open to including zsh's too. It can also be a good option for
completions handling commands that are system or distribution specific.
Ideally, arrange for the project's build system to install the
completion function in `$prefix/share/zsh/site-functions`.

25
LICENSE Normal file
View File

@ -0,0 +1,25 @@
The Z Shell is copyright (c) 1992-2017 Paul Falstad, Richard Coleman,
Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wischnowsky, and
others. All rights reserved. Individual authors, whether or not
specifically named, retain copyright in all changes; in what follows, they
are referred to as `the Zsh Development Group'. This is for convenience
only and this body has no legal status. The Z shell is distributed under
the following licence; any provisions made in individual files take
precedence.
Permission is hereby granted, without written agreement and without
licence or royalty fees, to use, copy, modify, and distribute this
software and to distribute modified versions of this software for any
purpose, provided that the above copyright notice and the following
two paragraphs appear in all copies of this software.
In no event shall the Zsh Development Group be liable to any party for
direct, indirect, special, incidental, or consequential damages arising out
of the use of this software and its documentation, even if the Zsh
Development Group have been advised of the possibility of such damage.
The Zsh Development Group specifically disclaim any warranties, including,
but not limited to, the implied warranties of merchantability and fitness
for a particular purpose. The software provided hereunder is on an "as is"
basis, and the Zsh Development Group have no obligation to provide
maintenance, support, updates, enhancements, or modifications.

View File

@ -1,53 +1,95 @@
zsh-completions
===============
zsh-completions ![GitHub release](https://img.shields.io/github/release/zsh-users/zsh-completions.svg) ![GitHub contributors](https://img.shields.io/github/contributors/zsh-users/zsh-completions.svg) [![IRC](https://img.shields.io/badge/IRC-%23zsh--completions-yellow.svg)](irc://irc.freenode.net/#zsh-completions) [![Gitter](https://badges.gitter.im/zsh-users/zsh-completions.svg)](https://gitter.im/zsh-users/zsh-completions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
=============
**Additional completion definitions for [Zsh](http://www.zsh.org).**
**Additional completion definitions for [Zsh](https://www.zsh.org/).**
*This projects aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts are meant to be contributed to the Zsh project when stable enough.*
*This project aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts may be contributed to the Zsh project when stable enough.*
---
Status
------
See [issues](zsh-completions/issues) for details on each completion definition.
## Usage
### Using packages
Usage
-----
| System | Package |
| ------------- | ------------- |
| Debian / Ubuntu | [zsh-completions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-completions&package=zsh-completions) |
| Fedora / CentOS / RHEL / Scientific Linux | [zsh-completions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-completions&package=zsh-completions) |
| OpenSUSE / SLE | [zsh-completions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-completions&package=zsh-completions) |
| Arch Linux / Manjaro / Antergos / Hyperbola | [zsh-completions](https://www.archlinux.org/packages/zsh-completions), [zsh-completions-git](https://aur.archlinux.org/packages/zsh-completions-git) |
| Gentoo / Funtoo | [app-shells/zsh-completions](https://packages.gentoo.org/packages/app-shells/zsh-completions) |
| NixOS | [zsh-completions](https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/zsh/zsh-completions/default.nix) |
| Void Linux | [zsh-completions](https://github.com/void-linux/void-packages/blob/master/srcpkgs/zsh-completions/template) |
| Slackware | [Slackbuilds](https://slackbuilds.org/repository/14.2/system/zsh-completions/) |
| macOS | [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/z/zsh-completions.rb), [MacPorts](https://github.com/macports/macports-ports/blob/master/sysutils/zsh-completions/Portfile) |
| NetBSD | [pkgsrc](https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-completions/README.html) |
| FreeBSD | [shells/zsh-completions](https://www.freshports.org/shells/zsh-completions) |
#### Using packages
---
* Arch Linux: [AUR/zsh-completions](https://aur.archlinux.org/packages.php?ID=54111) / [AUR/zsh-completions-git](https://aur.archlinux.org/packages.php?ID=51001)
* Gentoo: [scrill overlay](http://gpo.zugaina.org/app-shells/zsh-completions)
* Mac OS: [Homebrew](https://github.com/mxcl/homebrew/blob/master/Library/Formula/zsh-completions.rb)
* Debian based distributions (Debian/Ubuntu/Linux Mint...): Packager needed, please get in touch !
* RPM based distributions (Fedora/RHEL/CentOS...): Packager needed, please get in touch !
### Using zsh frameworks
#### [antigen](https://github.com/zsh-users/antigen)
#### Manual installation
Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`.
#### [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
To avoid issues with redundant `.zcompdump` cache generation (see [#603](https://github.com/zsh-users/zsh-completions/issues/603)), do **not** load `zsh-completions` as a standard plugin.
Instead, follow this optimized approach:
1. Clone the repository into your custom plugins directory:
```bash
git clone https://github.com/zsh-users/zsh-completions.git \
${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
```
2. Update your `~/.zshrc` configuration **before** sourcing oh-my-zsh:
```bash
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
autoload -U compinit && compinit
source "$ZSH/oh-my-zsh.sh"
```
This prevents `compinit` from being called twice and significantly improves shell startup time.
#### [zinit](https://github.com/zdharma-continuum/zinit)
Add `zinit light zsh-users/zsh-completions` to your `~/.zshrc`.
---
### Manual installation
* Clone the repository:
git clone git://github.com/zsh-users/zsh-completions.git
```bash
git clone https://github.com/zsh-users/zsh-completions.git
```
* Include the directory in your `$fpath`, for example by adding in `~/.zshrc`:
fpath=(path/to/zsh-completions/src $fpath)
```bash
fpath=(path/to/zsh-completions/src $fpath)
```
* You may have to force rebuild `zcompdump`:
rm -f ~/.zcompdump; compinit
```bash
rm -f ~/.zcompdump; compinit
```
Contributing
------------
---
Contributions are welcome, just make sure you follow the guidelines:
### Contributing
* Please add a header containing authors, license info, status and origin of the script (example [here](https://github.com/zsh-users/zsh-completions/blob/master/_ack)).
* Please try to follow [Zsh completion style guide](https://github.com/zsh-users/zsh/blob/master/Etc/completion-style-guide).
* Send a pull request or ask for committer access.
Contributions are welcome, see [CONTRIBUTING](https://github.com/zsh-users/zsh-completions/blob/master/CONTRIBUTING.md).
---
License
-------
See each file for license details.
## License
Completions use the Zsh license, unless explicitly mentioned in the file header.
See [LICENSE](https://github.com/zsh-users/zsh-completions/blob/master/LICENSE) for more information.

187
src/_ack
View File

@ -1,187 +0,0 @@
#compdef ack ack-grep
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ack 1.94 (http://betterthangrep.com).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# ------------------------------------------------------------------------------
_ack() {
local context curcontext="$curcontext" state line cmds update_policy ret=1
integer NORMARG
typeset -A opt_args
zstyle -s ":completion:${curcontext}:" cache-policy update_policy
[[ -z "$update_policy" ]] && zstyle ":completion:${curcontext}:" cache-policy _ack_types_caching_policy
unset _ack_raw_types
if ( [[ ${+_ack_raw_types} -eq 0 ]] || _cache_invalid "ack-grep" ) && ! _retrieve_cache "ack-grep"; then
_ack_raw_types=(${(S)${(f)${${"$(_call_program types $words[1] --help=types)"}#*--\[no\]}}#*no\]})
[[ $#_ack_raw_types -gt 0 ]] && _store_cache "ack-grep" _ack_raw_types
fi
_arguments -C -s -S -n \
'(- 1 *)--version[display version and copyright information]' \
'(- 1 *)--help[print a short help statement]' \
'(- 1 *)--man[print the manual page]' \
'(-a --all -u --unrestricted)'{-a,--all}'[operate on all files, regardless of type (but still skip directories like blib, CVS, etc.)]' \
'(-A --after-context -C --context)'{-A+,--after-context=}'[print N lines of trailing context after matching lines]:number' \
'(-B --before-context -C --context)'{-B+,--before-context=}'[print N lines of leading context before matching lines]:number' \
'(-C --context -A --after-context -B --before-context)'{-C-,--context=}'[print N lines (default 2) of context around matching lines]:number' \
'(-c --count)'{-c,--count}'[suppress normal output; instead print a count of matching lines for each input file]' \
'(--nocolor)--color[highlight the matching text]' \
'(--color --color-filename --color-match --color-lineno)--nocolor[supress the color]' \
'(--nocolor --color)--color-filename[sets the color to be used for filenames]:color:->colors' \
'(--nocolor --color)--color-match[sets the color to be used for matches]:color:->colors' \
'(--nocolor --color)--color-lineno[sets the color to be used for line numbers]:color:->colors' \
'--column[show the column number of the first match]' \
'(--noenv)--env[enable environment processing]' \
'(--env)--noenv[disable all environment processing, no .ackrc is read and all environment variables are ignored]' \
'--flush[flush output immediately]' \
'-f[only print the files that would be searched, without actually doing any searching]' \
'(--nofollow)--follow[follow symlinks]' \
'(--follow)--nofollow[don'\''t follow symlinks]' \
'-G+[only paths matching the given regex are included in the search]:regex' \
'-g+[print files where the relative path + filename matches the given regex]:regex' \
'(--nogroup)--group[group matches by file name]' \
'(--group)--nogroup[do not group matches by file name]' \
'(-H --with-filename -h --no-filename)'{-H,--with-filename}'[print the filename for each match]' \
'(-h --no-filename -H --with-filename)'{-h,--no-filename}'[suppress the prefixing of filenames on output when multiple files are searched]' \
'(-i --ignore-case)'{-i,--ignore-case}'[ignore case in the search strings]' \
'*--ignore-dir[ignore directory]:directory:_files -/' \
'*--noignore-dir[don'\''t ignore directory]:directory:_files -/' \
'--invert-file-match[print/search handle files that do not match -g/-G]' \
'--line=[only print given line of each file]:number' \
'(-l --files-with-matches -L --files-without-matches)'{-l,--files-with-matches}'[only print the filenames of matching files, instead of the matching text]' \
'(-L --files-without-matches -l --files-with-matches)'{-L,--files-without-matches}'[only print the filenames of files that do NOT match]' \
'--match=[specify the regular expression explicitly]:regex' \
'(-m --max-count)'{-m+,--max-count=}'[stop reading a file after N matches]:number' \
'(-r -R --recurse -n --no-recurse)'{-r,-R,--recurse}'[recurse into sub-directories]' \
'(-n --no-recurse -r -R --recurse)'{-n,--no-recurse}'[no descending into subdirectories]' \
'-o[show only the part of each line matching PATTERN (turns off text highlighting)]:pattern' \
'--output=[output the evaluation of expr for each line (turns off text highlighting)]:expression' \
'--pager=[direct ack'\''s output through program]:pager program:_command_names' \
'--passthru[prints all lines, whether or not they match the expression]' \
'--print0[the filenames are output separated with a null byte instead of the usual newline]' \
'(-Q --literal)'{-Q,--literal}'[quote all metacharacters in the pattern, it is treated as a literal]' \
'(--no-smart-case)--smart-case[ignore case in the search strings if pattern contains no uppercase characters]' \
'(--smart-case)--no-smart-case[disable --smart-case option]' \
'--sort-files[sorts the found files lexically]' \
'--show-types[outputs the filetypes that ack associates with each file]' \
'--thpppt[display the all-important Bill The Cat logo]' \
'*--type=[specify the types of files to include or exclude from a search]:type:->types' \
'*--type-add[files with the given extensions are recognized as being of the given type]:type-def:->type-defs' \
'*--type-set[files with the given extensions are recognized as being of the given type]:type-def:->type-defs' \
'(-u --unrestricted -a --all)'{-u,--unrestricted}'[all files and directories (including blib/, core.*, ...) are searched, nothing is skipped]' \
'(-v --invert-match)'{-v,--invert-match}'[invert match: select non-matching lines]' \
'(-w --word-regexp)'{-w,--word-regexp}'[force the given pattern to match only whole words]' \
'-1[stops after reporting first match of any kind]' \
{'--','--no'}${_ack_raw_types/ ##/\[}']' \
'*: :->args' \
&& ret=0
case $state in
args)
if [[ CURRENT -eq NORMARG && ${+opt_args[--match]} -eq 0 ]]
then
# If the current argument is the first non-option argument
# and --match isn't present then a pattern is expected
_message -e patterns 'pattern' && ret=0
else
_files
fi
;;
colors)
local colors; colors=(
'black' 'on_black'
'red' 'on_red'
'green' 'on_green'
'yellow' 'on_yellow'
'blue' 'on_blue'
'magenta' 'on_magenta'
'cyan' 'on_cyan'
'white' 'on_white'
'clear'
'reset'
'dark'
'bold'
'underline'
'underscore'
'blink'
'reverse'
'concealed'
)
_describe -t 'colors' 'color' colors && ret=0
;;
type-defs)
if compset -P '*='; then
local extensions; extensions=(*.*(:e))
_values -s ',' 'file extension' '.'$extensions && ret=0
else
_message -e type-name 'type name' && ret=0
fi
;;
types)
local types; types=({'','no'}${_ack_raw_types/ ##/:})
_describe -t 'types' 'type' types
;;
esac
return ret
}
_ack_types_caching_policy() {
# Rebuild if ackrc more recent than cache.
[[ -f $HOME/.ackrc && $$HOME/.ackrc -nt "$1" ]] && return 0
# Rebuild if cache is older than one week.
local -a oldp
oldp=( "$1"(Nmw+1) )
(( $#oldp )) && return 0
return 1
}
_ack "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

417
src/_adb
View File

@ -1,417 +0,0 @@
#compdef adb
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for adb (Android Debug Bridge) 1.0.26
# (http://developer.android.com/guide/developing/tools/adb.html).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# ------------------------------------------------------------------------------
_adb() {
typeset -A opt_args
local context state line curcontext="$curcontext" adb_args
local ret=1
_arguments -C \
'(-e -s)-d[directs command to the only connected USB device, returns an error if more than one USB device is present]' \
'(-d -s)-e[directs command to the only running emulator, returns an error if more than one emulator is running]' \
'(-d -e)-s[directs command to the USB device or emulator with the given serial number]: :_adb_serial_numbers' \
'-p[simple product name or a relative/absolute path to a product out directory]: :_adb_products' \
'1: :_adb_cmds' \
'*::arg:->args' \
&& ret=0
adb_args="${(fkv)opt_args[(I)-d|-e|-s|-p]}"
case "$state" in
(args)
curcontext="${curcontext%:*:*}:adb-cmd-$words[1]:"
case $words[1] in
(help|version|devices|jdwp|bugreport|wait-for-device|start-server|kill-server|get-state|get-serialno|status-window|remount|reboot-bootloader|root|usb)
_message 'no more arguments' && ret=0
;;
(connect|disconnect)
_arguments \
'1: :_adb_host_colon_ports' \
&& ret=0
;;
(push)
_arguments \
'1:local directory:_files -/' \
'2: :_adb_remote_files -/' \
&& ret=0
;;
(pull)
_arguments \
'1: :_adb_remote_files -/' \
'2:local directory:_files -/' \
&& ret=0
;;
(sync)
_arguments \
'-l[list but do not copy]' \
'1: :_adb_sync_directories' \
&& ret=0
;;
(shell|emu)
_arguments -C \
'1: :_adb_remote_commands' \
'*::remote-command-arg:->remote-command-args' \
&& ret=0
case "$state" in
(remote-command-args)
curcontext="${curcontext%:*:*}:adb-remote-cmd-$words[1]:"
if (( $+functions[_adb_remote_command_$words[1]_args] )); then
_adb_remote_command_$words[1] && ret=0
# TODO Write handlers for following commands:
# * am (Activity Manager)
# * pm (Package Manager)
# TODO Reuse existing compdefs for standard commands (ls, id, ifconfig, kill, etc) ?
# How do we tell them to use _remote_ files/pids/users/etc ?
else
_adb_remote_command_default && ret=0
fi
;;
esac
;;
(logcat)
local -a rotation_opts
[[ -n ${(M)words:#"-f"} ]] && rotation_opts+=('-r[rotates the log file every kbytes of output. The default value is 16]:value (in kb)')
[[ -n ${(M)words:#"-r"} ]] && rotation_opts+=('-n[sets the maximum number of rotated logs. The default value is 4]:count')
_arguments \
'-b[loads an alternate log buffer for viewing, such as event or radio. The main buffer is used by default]: :_adb_logcat_buffers' \
'-c[clears (flushes) the entire log and exits]' \
'-d[dumps the log to the screen and exits]' \
'-f[writes log message output to file. The default is stdout]: :_files' \
'-g[prints the size of the specified log buffer and exits]' \
'-s[sets the default filter spec to silent]' \
'-v[sets the output format for log messages]: :_adb_logcat_output_formats' \
"${rotation_opts[@]}" \
'*: :_adb_logcat_filter_specs' \
&& ret=0
;;
(forward)
_arguments \
'1: :_adb_local_forward_specs' \
'2: :_adb_remote_forward_specs' \
&& ret=0
;;
(install)
_arguments \
'-l[forward-lock the app]' \
'-r[reinstall the app, keeping its data]' \
'-s[install on SD card instead of internal storage]' \
'1: :_files' \
&& ret=0
;;
(uninstall)
_arguments \
'-k[keep the data and cache directories]' \
'1: :_adb_packages' \
&& ret=0
;;
(reboot)
_arguments \
'1:program:((bootloader:reboot\ into\ the\ bootloader\ program recovery:reboot\ into\ the\ recovery\ program))' \
&& ret=0
;;
(tcpip)
_arguments \
'1::port' \
&& ret=0
;;
(ppp)
# TODO Complete tty (See http://developer.android.com/guide/developing/tools/adb.html#commandsummary)
# TODO Complete PPP parameters (See http://ppp.samba.org/pppd.html)
_arguments \
'1::tty' \
'*::parameters' \
&& ret=0
;;
esac
;;
esac
return ret
}
(( $+functions[_adb_cmds] )) ||
_adb_cmds() {
_alternative \
'general-commands:general command:_adb_general_cmds' \
'device-commands:device command:_adb_device_cmds' \
'scripting-commands:scripting command:_adb_scripting_cmds'
}
(( $+functions[_adb_general_cmds] )) ||
_adb_general_cmds() {
local commands; commands=(
'help:show help message'
'version:show version number'
'devices:list all connected devices'
'connect:connect to a device via TCP/IP'
'disconnect:disconnect from a TCP/IP device'
)
_describe -t general-commands 'general command' commands "$@"
}
(( $+functions[_adb_device_cmds] )) ||
_adb_device_cmds() {
local commands; commands=(
'push:copy file/dir to device'
'pull:copy file/dir from device'
'sync:copy host->device only if changed'
'shell:run remote shell interactively or command'
'emu:run emulator console command'
'logcat:view device log'
'forward:forward socket connections'
'jdwp:list PIDs of processes hosting a JDWP transport'
'install:push this padbage file to the device and install it'
'uninstall:remove this app padbage from the device'
'bugreport:return all information from the device'
)
_describe -t device-commands 'device command' commands "$@"
}
(( $+functions[_adb_scripting_cmds] )) ||
_adb_scripting_cmds() {
local commands; commands=(
'wait-for-device:block until device is online'
'start-server:ensure that there is a server running'
'kill-server:kill the server if it is running'
'get-state:prints\: offline | bootloader | device'
'get-serialno:prints\: <serial-number>'
'status-window:continuously print device status for a specified device'
'remount:remounts the /system partition on the device read-write'
'reboot:reboots the device, optionally into the bootloader or recovery program'
'reboot-bootloader:reboots the device into the bootloader'
'root:restarts the adbd daemon with root permissions'
'usb:restarts the adbd daemon listening on USB'
'tcpip:restarts the adbd daemon listening on TCP on the specified port'
'ppp:run PPP over USB'
)
_describe -t scripting-commands 'scripting command' commands "$@"
}
(( $+functions[_adb_products] )) ||
_adb_products() {
_alternative \
'product-names:product name:_adb_product_names' \
'directories:directory:_files -/'
}
(( $+functions[_adb_product_names] )) ||
_adb_product_names() {
local ret=1
if [[ -n "$ANDROID_PRODUCT_OUT" ]]; then
local product_names; product_names=("$ANDROID_PRODUCT_OUT:default value set in ANDROID_PRODUCT_OUT environment variable")
_describe -t product-names 'product name' product_names && ret=0
else
_message -e product-names 'product name' && ret=0
fi
return ret
}
(( $+functions[_adb_serial_numbers] )) ||
_adb_serial_numbers() {
local serial_numbers; serial_numbers=(${${(M)${(f)"$(_call_program devices $service devices)"}:#*device}%%[[:space:]]*}":connected device")
[[ -n "$ANDROID_SERIAL" ]] && serial_numbers+=("$ANDROID_SERIAL:default value set in ANDROID_SERIAL environment variable")
_describe -t serial-numbers 'serial number' serial_numbers "$@" && ret=0
}
(( $+functions[_adb_packages] )) ||
_adb_packages() {
local packages; packages=(${${(ps:\r\n:)"$(_call_program packages $service $adb_args shell 'ls /data/data 2>/dev/null')"}:#\**\*})
_multi_parts . packages
}
(( $+functions[_adb_host_colon_ports] )) ||
_adb_host_colon_ports() {
local ret=1
if compset -P '*:'; then
_message -e ports 'port' && ret=0
else
_wanted hosts expl 'host' _hosts -qS: && ret=0
fi
return ret
}
(( $+functions[_adb_remote_files] )) ||
_adb_remote_files() {
local dirsonly command="ls -d ${(S)words[CURRENT]/\/*//}*/ 2>/dev/null"
zparseopts -D -E '/=dirsonly'
(( ! $#dirsonly )) && command+="; ls -d ${words[CURRENT]}* 2>/dev/null"
local files; files=(${${(ps:\r\n:)"$(_call_program files $service $adb_args shell "'$command'" 2>/dev/null)"}:#\**\*})
_multi_parts "$@" / files
}
(( $+functions[_adb_remote_commands] )) ||
_adb_remote_commands() {
local commands; commands=(${${(ps:\r\n:)"$(_call_program commands $service $adb_args shell "'IFS=:;for path_dir in \$PATH; do ls \$path_dir 2>/dev/null; done'" 2>/dev/null)"}:#\**\*})
_describe -t remote-commands 'remote command' commands && ret=0
}
(( $+functions[_adb_local_forward_specs] )) ||
_adb_local_forward_specs() {
local ret=1
if compset -P '*:'; then
case ${IPREFIX%:} in
(tcp)
_message -e ports 'port' && ret=0
;;
(localabstract|localreserved)
_wanted sockets expl 'socket' _socket && ret=0
;;
(localfilesystem)
_wanted socket-files expl 'socket file' _files && ret=0
;;
(dev)
_wanted devices expl 'device' _files -g "/dev/**" && ret=0
;;
esac
else
local modes; modes=(
'tcp:TCP socket'
'localabstract:local abstract socket'
'localreserved:local reserved socket'
'localfilesystem:local filesystem socket'
'dev:device'
)
_describe -t forward-modes 'forward mode' modes -qS: && ret=0
fi
return ret
}
(( $+functions[_adb_remote_forward_specs] )) ||
_adb_remote_forward_specs() {
local ret=1
if compset -P '*:'; then
case ${IPREFIX%:} in
(tcp)
_message -e ports 'remote port' && ret=0
;;
(localabstract|localreserved|localfilesystem)
_message -e sockets 'remote socket' && ret=0
;;
(dev)
_message -e devices 'remote device' && ret=0
;;
(jdwp)
local pids; pids=(${${(f)"$(_call_program pids $service $adb_args jdwp 2>/dev/null)"}:#\**\*})
_describe -t remote-pids 'remote pid' pids && ret=0
;;
esac
else
local modes; modes=(
'tcp:TCP socket'
'localabstract:local abstract socket'
'localreserved:local reserved socket'
'localfilesystem:local filesystem socket'
'dev:device'
'jdwp:Java Debug Wire Protocol'
)
_describe -t forward-modes 'forward mode' modes -qS: && ret=0
fi
return ret
}
(( $+functions[_adb_sync_directories] )) ||
_adb_sync_directories() {
_alternative \
'partitions:partition:((system:the\ /system\ partition data:the\ /data\ partition))' \
'directories:directory:_adb_remote_files -/'
}
(( $+functions[_adb_logcat_filter_specs] )) ||
_adb_logcat_filter_specs() {
local ret=1
if compset -P '*:'; then
local priorities; priorities=(
'V:verbose (lowest priority)'
'D:debug'
'I:info'
'W:warning'
'E:error'
'F:fatal'
'S:silent (highest priority, on which nothing is ever printed)'
)
_describe -t log-priorities 'log priority' priorities "$@" && ret=0
else
local tags; tags=(${(u)${${${(f)"$(_call_program tags $service $adb_args logcat -d 2>/dev/null)"}%%[[:space:]]#\(*}##*\/}:#\**\*})
_describe -t log-tags 'log tag' tags -qS: "$@" && ret=0
fi
return ret
}
(( $+functions[_adb_logcat_output_formats] )) ||
_adb_logcat_output_formats() {
local formats; formats=(
'brief:display priority/tag and PID of originating process (the default format)'
'process:display PID only'
'tag:display the priority/tag only'
'thread:display process:thread and priority/tag only'
'raw:display the raw log message, with no other metadata fields'
'time:display the date, invocation time, priority/tag, and PID of the originating process'
'long:display all metadata fields and separate messages with a blank lines'
)
_describe -t log-formats 'log format' formats "$@" && ret=0
}
(( $+functions[_adb_logcat_buffers] )) ||
_adb_logcat_buffers() {
local buffers; buffers=(
'main:view the main log buffer (default)'
'radio:view the buffer that contains radio/telephony related messages'
'events:view the buffer containing events-related messages'
)
_describe -t log-buffers 'log buffer' buffers "$@" && ret=0
}
(( $+functions[_adb_remote_command_default] )) ||
_adb_remote_command_default() {
_wanted remote-files expl 'remote file' _adb_remote_files
}
_adb "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

65
src/_afew Normal file
View File

@ -0,0 +1,65 @@
#compdef afew
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for afew(version 3.0.1) an initial tagging script for notmuch mail.
# (https://github.com/teythoon/afew)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Jindřich Pilař (https://github.com/JindrichPilar)
#
# ------------------------------------------------------------------------------
_arguments \
'(- 1 *)'{-h,--help}'[display usage information]' \
'(- 1 *)'{-V,--version}"[show program's version number and exit]" \
"(-t --tag -m --move-mails)"{-w,--watch}"[continuously monitor the mailbox for new messages matching the given query]" \
"(-m --move-mails -w --watch)"{-t,--tag}"[run the tag filters]" \
"(-w --watch -m --move-mails)"{-m,--move-mails}"[move mail files between maildir folders]" \
"(-n --all)"{-a,--all}"[operate on all email]" \
"(-a --new)"{-n,--new}"[operate on all new email]" \
{-C,--notmuch-config=}"[specify path to notmuch configuration file]:files:_files" \
{-e,--enable-filters=}"[specify filter classes to use]:filter" \
{-d,--dry-run}"[don't change the DB]" \
{-R,--reference-set-size=}"[specify size of the reference set]:size [1000]" \
{-T,--reference-set-timeframe-days=}"[don't use emails older than specified age]:age (days) [30]" \
{-N,--notmuch-args=}"[arguments for nutmuch new(in move mode)]:notmuch arg" \
{-v,--verbose}"[be more verbose]" \
'*: :_guard "^-*" query'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

36
src/_age Normal file
View File

@ -0,0 +1,36 @@
#compdef age
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for age 1.1.1 (https://github.com/FiloSottile/age).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Hydrargyrum (https://github.com/hydrargyrum)
#
# ------------------------------------------------------------------------------
_arguments \
-A '-*' \
'(- *)'{-h,--help}'[show help message and exit]' \
'(-e --encrypt -d --decrypt)'{-e,--encrypt}'[Encrypt INPUT to OUTPUT]' \
'(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[Decrypt INPUT to OUTPUT]' \
\*{-i,--identity=}'[Encrypt/Decrypt using the identities at PATH]:IDENTITY:_files' \
'(-o --output)'{-o,--output=}'[Write encrypted/decrypted file to OUTPUT]:OUTPUT:_files' \
'(-j --plugin)'{-j,--plugin=}'[Encrypt/Decrypt using the data-less PLUGIN]:PLUGIN:' \
'(-d --decrypt)'\*{-r,--recipient=}'[Encrypt to the explicitly specified RECIPIENT]:RECIPIENT:' \
'(-d --decrypt)'\*{-R,--recipients-file=}'[Encrypt to the RECIPIENTS listed in the file at PATH]:RECIPIENTS_FILE:_files' \
'(-a --armor -d --decrypt)'{-a,--armor}'[Encrypt to an ASCII-only "armored" encoding]' \
'(-p --passphrase -d --decrypt)'{-p,--passphrase}'[Encrypt with a passphrase]' \
:INPUT:_files
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,30 +1,5 @@
#compdef android
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
@ -238,6 +213,8 @@ _android_cmds() {
'update:update a virtual device, project, SDK or adb'
'move:move a virtual device'
'delete:delete a virtual device'
'avd:displays the AVD Manager window'
'sdk:displays the SDK Manager window'
'display:display manager windows'
)
_describe -t commands 'command' commands "$@"

View File

@ -1,6 +1,6 @@
#compdef debuild
#compdef archlinux-java
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -28,33 +28,53 @@
# Description
# -----------
#
# Completion script for debuild 2.10.
#
# Status: incomplete.
# Completion script for archlinux-java a tool for selecting default Java runtime (https://wiki.archlinux.org/index.php/java).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
# * Jindřich Pilař (https://github.com/JindrichPilar)
#
# ------------------------------------------------------------------------------
# FIXME --noconf is only allowed in first position
_arguments \
'(- 1 *)'{-h,--help}'[show help]' \
'(- 1 *)--version[show version and copyright information]' \
{--no-conf,--noconf}'[don'\''t read devscripts config files]' \
{-r-,--rootcmd=}'[command used to become root if debuild not setuid root (default: fakeroot)]: :_command_names' \
'*'{-e-,--preserve-envvar=}'[preserve environment variable]: :_vars' \
'(-e --preserve-envvar)--preserve-env[preserve all environment vars (except PATH)]' \
'*'{-e-,--set-envvar=}'[preserve environment variable]: :_vars -qS=' \
'--prepend-path=[prepend to the sanitised PATH]: :_files -/' \
'(-D)-d[skip checking of build dependencies]' \
'(-d)-D[force checking of build dependencies]' \
'--check-dirname-level[how much to check directory names]:level:((0\:never 1\:only\ if\ program\ changes\ directory\ \(default\) 2\:always))' \
'--check-dirname-regex[Perl regex defining matching directory names, the string PACKAGE will be replaced by the package name (default: '\''PACKAGE(-.+)?'\'')]:regex'
_archlinux-java_command_arguments() {
case $words[1] in
(set)
local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}")
_describe -t output 'Downloads to delete' java_versions
;;
esac
}
_archlinux-java() {
local -a commands
commands=(
"status:List installed Java environments and enabled one"
"get:Return the short name of the Java environment set as default"
"set:Force <JAVA_ENV> as default"
"unset:Unset current default Java environment"
"fix:Fix an invalid/broken default Java environment configuration"
"help:Show help"
)
_arguments -C \
'1:cmd:->cmds' \
'*:: :->args' \
case "$state" in
(cmds)
_describe -t commands 'commands' commands
;;
(*)
_archlinux-java_command_arguments
;;
esac
}
_archlinux-java
# Local Variables:
# mode: Shell-Script

63
src/_artisan Normal file
View File

@ -0,0 +1,63 @@
#compdef artisan
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for artisan (http://laravel.com/docs/artisan).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * loranger (https://github.com/loranger)
# * Yohan Tambè (https://github.com/Cronos87)
#
# ------------------------------------------------------------------------------
_artisan_get_command_list () {
IFS=" "
php artisan --no-ansi | \
sed "1,/Available commands/d" | \
awk '/ [a-z]+/ { print $1 }' | \
sed -E 's/^[ ]+//g' | \
sed -E 's/[:]+/\\:/g' | \
sed -E 's/[ ]{2,}/\:/g'
}
_artisan () {
if [ -f artisan ]; then
local -a commands
IFS=$'\n'
commands=(`_artisan_get_command_list`)
_describe 'commands' commands
fi
}
compdef _artisan php artisan
compdef _artisan artisan

View File

@ -1,9 +1,30 @@
#compdef attach
#compdef atach
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for attach (http://github.com/sorin-ionescu/attach).
# Completion script for atach (https://github.com/sorin-ionescu/atach).
#
# ------------------------------------------------------------------------------
# Authors
@ -21,7 +42,7 @@ mode_values=(
"winch:use sigwinch to redraw"
)
existing_sessions=($(_call_program session attach))
existing_sessions=($(_call_program session atach))
_arguments -C -s -S \
'(--list -l)'{--list,-l}'[list sessions]' \

197
src/_avdmanager Normal file
View File

@ -0,0 +1,197 @@
#compdef avdmanager
# ------------------------------------------------------------------------------
# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for avdmanager(https://developer.android.com/studio/command-line/avdmanager)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_avdmanager() {
typeset -A opt_args
local context state line
local curcontext="$curcontext"
local ret=1
_arguments -C -A "-*" \
'(- *)'{-h,--help}'[Print help message]' \
'(-s --silent)'{-s,--silent}'[Silent mode, shows error only]' \
'(-v --verbose)'{-v,--verbose}'[Verbose mode, shows errors, warnings and all messages]' \
'--clear-cache[Clear the SDK Manager repository manifest cache]' \
'1: :_avdmanager_subcommands' \
'*::arg:->args' \
&& ret=0
case "$state" in
(args)
if (( $+functions[_avdmanager_${words[1]}] )); then
_avdmanager_${words[1]} && ret=0
else
ret=0
fi
;;
esac
return ret
}
(( $+functions[_avdmanager_list] )) ||
_avdmanager_list() {
local ret=1
_arguments -C \
'1: :(avd target device)' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
case $words[1] in
(avd|target|device)
_arguments \
'(-0 --null)'{-0,--null}'[Terminate lines with \0 instead of \n]' \
'(-c --compact)'{-c,--compact}'[Compact output]' \
&& ret=0
;;
esac
;;
esac
return $ret
}
(( $+functions[_avdmanager_create] )) ||
_avdmanager_create() {
local ret=1
_arguments -C \
'1: :(avd)' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
case $words[1] in
(avd)
_arguments \
'(-c --sdcard)'{-c,--sdcard}'[Path to a shared SD card image]: :_files' \
'(-g --tag)'{-g,--tag}'[The sys-img tag to use for the AVD]:tag' \
'(-p --path)'{-p,--path}'[Directory where the new AVD will be created]' \
'(-k --package)'{-k,--package}'[Package path of the system image for this AVD]:package' \
'(-n --name)'{-n,--name}'[Name of the new AVD]:name' \
'--skin[The optional name of a skin to use with this device]' \
'(-f --force)'{-f,--force}'[Forces creation]' \
'(-b --abi)'{-b,--abi}'[The ABI to use for the AVD]:abi' \
'(-d --device)'{-d,--device}'[The optional device definition to use]' \
&& ret=0
;;
esac
;;
esac
return $ret
}
(( $+functions[_avdmanager_move] )) ||
_avdmanager_move() {
local ret=1
_arguments -C \
'1: :(avd)' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
case $words[1] in
(avd)
_arguments \
'(-p --path)'{-p,--path}"[Path to the AVD's new directory]: :_files -/" \
'(-n --name)'{-n,--name}'[Name of the AVD to delete]: :_avdmanager_avds' \
'(-r --rename)'{-r,--rename}'[New name of the AVD]' \
&& ret=0
;;
esac
;;
esac
return $ret
}
(( $+functions[_avdmanager_delete] )) ||
_avdmanager_delete() {
local ret=1
_arguments -C \
'1: :(avd)' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
case $words[1] in
(avd)
_arguments \
'(-n --name)'{-n,--name}'[Name of the AVD to delete]: :_avdmanager_avds' \
&& ret=0
;;
esac
;;
esac
return $ret
}
(( $+functions[_avdmanager_subcommands] )) ||
_avdmanager_subcommands() {
local -a commands=(
"list:Lists existing targets or virtual devices"
"create:Creates a new Android Virtual Device"
"move:Moves or renames an Android Virtual Device"
"delete:Deletes an Android Virtual Device"
)
_describe -t commands 'subcommand' commands
}
(( $+functions[_avdmanager_avds] )) ||
_avdmanager_avds() {
local -a avds=(${(@f)"$(avdmanager list avd -c)"})
_values 'android virtual devices' $avds
}
_avdmanager "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,168 +0,0 @@
#compdef rc-update rc-status rc rc-service
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Gentoo Baselayout v2 and OpenRC v0.8 (init system).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vadim A. Misbakh-Soloviov <mva@mva.name>
# * Bapt <bapt@tuxfamily.org>
# * kaworu <kaworu@kaworu.ch>
# * David Durrleman <dualmoo@gmail.com>
# * oberyno <oberyno@gmail.com>
# * Mamoru Komachi <usata@usata.org>
#
# ------------------------------------------------------------------------------
#<sys-apps/baselayout-1.12.11.1>
#
# Status:
# rc (fully done)
# rc-update (fully done)
# rc-status (fully done)
# rc-service (to be improved)
local gentoo_runlevels
gentoo_runlevels=(/etc/runlevels/*(:t))
# Stuff for rc
_rc () {
if (( CURRENT == 2 )); then
_values 'runlevels' $gentoo_runlevels
fi
}
_rc_list_service () {
local servicelist
servicelist=(${(f)"$(/sbin/rc-service -Cl 2>/dev/null)"})
_values 'services' $servicelist
}
# Stuff for rc-service
_rc-service () {
servicelist=${(f)"$(/sbin/rc-service -Cl 2>/dev/null)"}
if (( CURRENT == 2 ));then
_arguments -s \
'(-e --exists)'{-e,--exists}"[tests if the service exists or not]" \
'(-l --list)'{-l,--list}'[list all available services]' \
'(-r --resolve)'{-r,--resolve}'[resolve the service name to an init script]' \
'(-C --nocolor)'{-C,--nocolor}'[Disable color output]' \
'(-v --verbose)'{-v,--verbose}'[Run verbosely]' \
'(-q --quiet)'{-q,--quiet}'[Run quietly]'
_rc_list_service
else
case $words[2] in
-e|--exists|-r|--resolve)
(( CURRENT > 3 )) && return 0
_rc_list_service
;;
-*)
return 0
;;
*)
_values "action" stop start restart describe zap
;;
esac
fi
}
# Stuff for rc-status
_rc-status () {
_arguments -s \
'(-a --all)'{-a,--all}'[Show services at all run levels]' \
'(-l --list)'{-l,--list}'[Show list of run levels]' \
'(-nc --nocolor)'{-nc,--nocolor}'[Disable color output]' \
'(-s --servicelist)'{-s,--servicelist}'[Show all services]' \
'(-u --unused)'{-u,--unused}'[Show services not assigned to any run level]'
_values 'runlevels' $gentoo_runlevels
}
# Stuff for rc-update
_rc-update () {
local used_init
# FIXME: ${=${(f)"$(rc-update show 2>/dev/null)"}% |*} yield the same result (for me).
# we probably don't need any more the (M) matcher part.
used_init=(${=${(M)${(f)"$(/sbin/rc-update show 2>/dev/null)"}:#*|*[a-z]*}% |*})
if (( CURRENT == 2 )); then
_values 'rc-update actions' \
'add[Add script to a runlevel]' \
'del[Delete script from a runlevel]' \
'show[Show scripts lanched at a runlevel]' \
'-a[Add script to a runlevel]' \
'-d[Delete script from a runlevel]' \
'-s[Show scripts lanched at a runlevel]'
elif (( CURRENT == 3 )); then
case "$words[2]" in
add|-a)
_values 'scripts' /etc/init.d/*~*.sh(:t)
;;
del|-d)
_values 'scripts' $used_init
;;
show|-s)
_values 'runlevels' $gentoo_runlevels \
'-v[Show all init scripts]' \
'--verbose[Show all init scripts]'
;;
esac
elif (( CURRENT == 4 )); then
_values 'runlevels' $gentoo_runlevels
fi
}
case "$service" in
rc-update)
_rc-update "$@" && return 0
;;
rc-service)
_rc-service "$@" && return 0
;;
rc-status)
_rc-status "$@" && return 0
;;
rc)
_rc "$@" && return 0
;;
esac
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

230
src/_bitcoin-cli Normal file
View File

@ -0,0 +1,230 @@
#compdef bitcoin-cli
# ------------------------------------------------------------------------------
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for bitcoin-cli (https://bitcoin.org).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Ian Ker-Seymer (https://github.com/ianks)
# * notmike
# ------------------------------------------------------------------------------
_bitcoin-cli() {
local context state line curcontext="$curcontext"
_arguments -C \
-?'[This help message]' \
-addrinfo'[Get the number of addresses known to the node, per network and total, after filtering for quality and recency. Total number of addresses known to the node may be higher.]' \
-chain='[Use the chain <chain> (default: main). Allowed values: main, test, signet, regtest]:chain:(main test signet regtest)' \
-color='[Color setting for CLI output (default: auto). Valid values: always, auto, never]:when:(always auto never)' \
-conf='[Specify configuration file. Relative paths will be prefixed by datadir location. (default: bitcoin.conf)]:PATH:_files' \
-datadir='[Specify data directory]:PATH:_directories' \
-getinfo='[Get general information from the remote server.]' \
-testnet'[Use the test chain]' \
-regtest'[Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.]' \
-named'[Pass named instead of positional arguments (default: false)]' \
-netinfo=-'[Get network peer connection information from the remote server.]::level_or_help:(0 1 2 3 4 help)' \
-stdin'[Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)]' \
-rpcport='[Connect to JSON-RPC on <port> (default: 8332, testnet: 18332, regtest: 18443)]: :_guard "[[\:digit\:]]#" "PORT"' \
-rpcwait'[Wait for RPC server to start]' \
-rpcuser='[Username for JSON-RPC connections]:RPCUSER:()' \
-rpcpassword='[Password for JSON-RPC connections]:RPCPASSWORD:()' \
-rpcconnect='[Send commands to node running on <ip> (default: 127.0.0.1)]:RPCCONNECT:_hosts' \
-rpcclienttimeout='[Timeout during HTTP requests, or 0 for no timeout. (default: 900)]: :_guard "[[\:digit\:]]#" "RPCCLIENTTIMEOUT"' \
-version'[Print version and exit]' \
':subcommand:->subcommand' && ret=0
case $state in
subcommand)
subcommands=(
'getbestblockhash'
'getblock'
'getblockchaininfo'
'getblockcount'
'getblockfilter'
'getblockfrompeer'
'getblockhash'
'getblockheader'
'getblockstats'
'getchaintips'
'getchaintxstats'
'getdeploymentinfo'
'getdifficulty'
'getmempoolancestors'
'getmempooldescendants'
'getmempoolentry'
'getmempoolinfo'
'getrawmempool'
'gettxout'
'gettxoutproof'
'gettxoutsetinfo'
'gettxspendingprevout'
'preciousblock'
'pruneblockchain'
'savemempool'
'scantxoutset'
'verifychain'
'verifytxoutproof'
'getmemoryinfo'
'getrpcinfo'
'help'
'logging'
'stop'
'uptime'
'getblocktemplate'
'getmininginfo'
'getnetworkhashps'
'prioritisetransaction'
'submitblock'
'submitheader'
'addnode'
'clearbanned'
'disconnectnode'
'getaddednodeinfo'
'getconnectioncount'
'getnettotals'
'getnetworkinfo'
'getnodeaddresses'
'getpeerinfo'
'listbanned'
'ping'
'setban'
'setnetworkactive'
'analyzepsbt'
'combinepsbt'
'combinerawtransaction'
'converttopsbt'
'createpsbt'
'createrawtransaction'
'decodepsbt'
'decoderawtransaction'
'decodescript'
'finalizepsbt'
'fundrawtransaction'
'getrawtransaction'
'joinpsbts'
'sendrawtransaction'
'signrawtransactionwithkey'
'testmempoolaccept'
'utxoupdatepsbt'
'enumeratesigners'
'createmultisig'
'deriveaddresses'
'estimatesmartfee'
'getdescriptorinfo'
'signmessagewithprivkey'
'validateaddress'
'verifymessage'
'abandontransaction'
'abortrescan'
'addmultisigaddress'
'backupwallet'
'bumpfee'
'createwallet'
'dumpprivkey'
'dumpwallet'
'encryptwallet'
'getaddressesbylabel'
'getaddressinfo'
'getbalance'
'getbalances'
'getnewaddress'
'getrawchangeaddress'
'getreceivedbyaddress'
'getreceivedbylabel'
'gettransaction'
'getunconfirmedbalance'
'getwalletinfo'
'importaddress'
'importdescriptors'
'importmulti'
'importprivkey'
'importprunedfunds'
'importpubkey'
'importwallet'
'keypoolrefill'
'listaddressgroupings'
'listdescriptors'
'listlabels'
'listlockunspent'
'listreceivedbyaddress'
'listreceivedbylabel'
'listsinceblock'
'listtransactions'
'listunspent'
'listwalletdir'
'listwallets'
'loadwallet'
'lockunspent'
'migratewallet'
'newkeypool'
'psbtbumpfee'
'removeprunedfunds'
'rescanblockchain'
'restorewallet'
'send'
'sendall'
'sendmany'
'sendtoaddress'
'sethdseed'
'setlabel'
'settxfee'
'setwalletflag'
'signmessage'
'signrawtransactionwithwallet'
'simulaterawtransaction'
'unloadwallet'
'upgradewallet'
'walletcreatefundedpsbt'
'walletdisplayaddress'
'walletlock'
'walletpassphrase'
'walletpassphrasechange'
'walletprocesspsbt'
'getzmqnotifications'
)
_describe -t subcommands 'bitcoin-cli subcommands' subcommands && ret=0
esac
return ret
}
_bitcoin-cli "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

68
src/_blkid Normal file
View File

@ -0,0 +1,68 @@
#compdef blkid
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Description
# -----------
#
# Completion for blkid, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - locate/print block device attributes
# https://man7.org/linux/man-pages/man8/blkid.8.html
# ------------------------------------------------------------------------------
# Authors
# -------
# * Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments \
'(-c --cache-file)'{-c+,--cache-file}'[Read from cachefile instead of reading from the default cache file]:cache file:_files' \
'(-d --no-encoding)'{-d,--no-encoding}"[Don't encode non-printing characters]" \
'(-D --no-part-details)'{-D,--no-part-details}"[Don't print information from partition table in low-level probing mode]" \
'(-g --garbage-collect)'{-g,--garbage-collect}'[Perform a garbage collection on the blkid cache]' \
'(-H --hint)'{-H,--hint}'[Set probing hint]:setting' \
'(-i --info)'{-i,--info}'[Display information about I/O limits]' \
'(-k --list-filesystems)'{-k,--list-filesystems}'[List all known filesystems and RAIDS and exits]' \
'(-l --list-one)'{-l,--list-one}'[Look up only one device that matches with the --match-token option]' \
'(-L --label)'{-L+,--label}'[Look up the device that uses this filesystem label]:label' \
'(-n --match-types)'{-n+,--match-types}'[Restrict the probing functions to the specified comma-separated list of superblock types]:list' \
'(-o --output)'{-o+,--output}'[Use the specified output format]:format:(full value list device udev export)' \
'(-O --offset)'{-O+,--offset}'[Probe at the given offset]:offset' \
'(-p --probe)'{-p,--probe}'[Switch to low-level superblock probing mode]' \
'(-s --match-tag)'{-m+,--match-tag}'[Show only the tags that match tag]:tag' \
'(-S --size)'{-S,--size}'[Override the size of device/file]' \
'(-t --match-token)'{-t+,--match-token}'[Search for block devices with tokens named NAME that have the VALUE]:name' \
'(-u --usages)'{-u,--usages}'[Restrict the probing functions to the specified comma-separated list of usage types]:list' \
'(-U --uuid)'{-U,--uuid}'[Look up the device that uses this filesystem uuid]:uuid' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \
'*:device:_files -g /dev'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

163
src/_bower Normal file
View File

@ -0,0 +1,163 @@
#compdef bower
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Bower (https://bower.io).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Joe Lencioni (https://github.com/lencioni)
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" state line _opts ret=1
_arguments -C \
'(- 1 *)'{-v,--version}'[display version information]' \
'1: :->cmds' \
'*:: :->args' && ret=0
case $state in
cmds)
_values "bower command" \
"cache[manage bower cache]" \
"help[display help information about Bower]" \
"home[opens a package homepage into your favorite browser]" \
"info[info of a particular package]" \
"init[interactively create a bower.json file]" \
"install[install a package locally]" \
"link[symlink a package folder]" \
"list[list local packages - and possible updates]" \
"login[authenticate with GitHub and store credentials]" \
"lookup[look up a package URL by name]" \
"prune[removes local extraneous packages]" \
"register[register a package]" \
"search[search for a package by name]" \
"update[update a local package]" \
"uninstall[remove a local package]" \
"unregister[remove a package from the registry]" \
"version[bump a package version]" && ret=0
_arguments \
'(--force)--force[make various commands more forceful]' \
'(--json)--json[output consumable JSON]' \
'(--log-level)--log-level[what level of logs to report]' \
"(--offline)--offline[don't hit the network]" \
'(--quiet)--quiet[only output important information]' \
"(--silent)--silent[don't output anything, besides errors]" \
'(--verbose)--verbose[make output more verbose]' \
'(--allow-root)--allow-root[allow running commands as root]' \
'(--version)--version[output Bower version]' \
'(--no-color)--no-color[disable colors]' && ret=0
;;
args)
case $line[1] in
help)
_values 'commands' \
'cache' \
'home' \
'info' \
'init' \
'install' \
'link' \
'list' \
'login' \
'lookup' \
'prune' \
'register' \
'search' \
'update' \
'uninstall' \
'unregister' \
'version' && ret=0
;;
(home|info|init|link|lookup|prune|register|search|unregister)
_arguments \
'(--help)--help[show help message]' && ret=0
;;
install)
_arguments \
'(--force-latest)--force-latest[force latest version on conflict]' \
'(--help)--help[show help message]' \
"(--production)--production[don't install project devDependencies]" \
"(--save)--save[save installed packages into the project's bower.json dependencies]" \
"(--save-dev)--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
;;
list)
_arguments \
'(--help)--help[show help message]' \
'(--paths)--paths[generate a simple JSON source mapping]' \
'(--relative)--relative[make paths relative to the directory config property, which defaults to bower_components]' && ret=0
;;
login)
_arguments \
'(--help)--help[show help message]' \
'(-t --token)'{-t,--token}'[Pass GitHub auth token (will not prompt for username/password)]' && ret=0
;;
uninstall)
_arguments \
'(--help)--help[show help message]' \
"(--save)--save[save installed packages into the project's bower.json dependencies]" \
"(--save-dev)--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
;;
update)
_arguments \
'(--force-latest)--force-latest[force latest version on conflict]' \
'(--help)--help[show help message]' \
"(--production)--production[don't install project devDependencies]" && ret=0
;;
version)
_arguments \
'(--message)--message[custom git commit and tag message]' && ret=0
;;
exec)
_normal && ret=0
;;
*)
_opts=( $(bower help $line[1] | sed -e '/^ \[-/!d; s/^ \[\(-[^=]*\)=.*/\1/') )
_opts+=( $(bower help $line[1] | sed -e '/^ -/!d; s/^ \(-.\), \[\(-[^=]*\)=.*/\1 \2/') )
if [[ $_opts != "" ]]; then
_values 'option' $_opts && ret=0
fi
;;
esac
;;
esac
return ret
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

106
src/_brew
View File

@ -1,106 +0,0 @@
#compdef brew
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for brew (https://github.com/mxcl/homebrew).
#
# Source: https://github.com/mxcl/homebrew/blob/master/Library/Contributions/brew_zsh_completion.zsh
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * kulakowski (https://github.com/kulakowski)
# * Gabe Berke-Williams (https://github.com/gabebw)
# * James Conroy-Finn (https://github.com/jcf)
# * Daniel Schauenberg (https://github.com/mrtazz)
# * Adam Vandenberg (https://github.com/adamv)
# * Erik Kastner (https://github.com/kastner)
#
# ------------------------------------------------------------------------------
_brew_all_formulae() {
formulae=(`brew search`) # FIXME _call_program should be used here
}
_brew_installed_formulae() {
installed_formulae=(`brew list`) # FIXME _call_program should be used here
}
local -a _1st_arguments
_1st_arguments=(
'cat:display formula file for a formula'
'cleanup:uninstall unused and old versions of packages'
'create:create a new formula'
'deps:list dependencies and dependants of a formula'
'doctor:audits your installation for common issues'
'edit:edit a formula'
'home:visit the homepage of a formula or the brew project'
'info:information about a formula'
'install:install a formula'
'link:link a formula'
'list:list files in a formula or not-installed formulae'
'log:git commit log for a formula'
'missing:check all installed formulae for missing dependencies.'
'outdated:list formulae for which a newer version is available'
'prune:remove dead links'
'remove:remove a formula'
'search:search for a formula (/regex/ or string)'
'server:start a local web app that lets you browse formulae (requires Sinatra)'
'unlink:unlink a formula'
'update:freshen up links'
'upgrade:upgrade outdated formulae'
'uses:show formulae which depend on a formula'
)
local expl
local -a formulae installed_formulae
_arguments \
'(-v)-v[verbose]' \
'(--cellar)--cellar[brew cellar]' \
'(--config)--config[brew configuration]' \
'(--env)--env[brew environment]' \
'(--repository)--repository[brew repository]' \
'(--version)--version[version information]' \
'(--prefix)--prefix[where brew lives on this system]' \
'(--cache)--cache[brew cache]' \
'*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "brew subcommand" _1st_arguments
return
fi
case "$words[1]" in
search|-S)
_arguments \
'(--macports)--macports[search the macports repository]' \
'(--fink)--fink[search the fink repository]' ;;
list|ls)
_arguments \
'(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
'(--versions)--versions[list all installed versions of a formula]' \
'1: :->forms' && return 0
if [[ "$state" == forms ]]; then
_brew_installed_formulae
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae
fi ;;
install|home|homepage|log|info|abv|uses|cat|deps|edit|options)
_brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;;
remove|rm|uninstall|unlink|cleanup|link|ln)
_brew_installed_formulae
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
esac
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,82 +1,352 @@
#compdef bundle
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Bundler (http://gembundler.com).
# Completion script for Bundler 2.7.0 (https://bundler.io/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Bruno Michel (https://github.com/nono)
# * Shohei Yoshida (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" state line ret=1
local curcontext="$curcontext" state line _gems _opts ret=1
_bundle_commands() {
local -a commands=(
"install:Install the gems specified by the Gemfile or Gemfile.lock"
"update:Update dependencies to their latest versions"
"cache:Package the .gem files required by your application"
"exec:Execute a script in the context of the current bundle"
"config:Specify and read configuration options for bundler"
"help:Describe available tasks or one specific task"
"add:Add the named gem to the Gemfile and run bundle install"
"binstubs:Generate binstubs for executables in a gem"
"check:Determine whether the requirements for your application are installed"
"show:Show the source location of a particular gem in the bundle"
"outdated:Show all of the outdated gems in the current bundle"
"console:Start an IRB session in the context of the current bundle"
"open:Open an installed gem in the editor"
"list:Show all of the gems in the current bundle"
"lock:Generate a lockfile for your dependencies"
"viz:Generate a visual representation of your dependencies"
"init:Generate a simple Gemfile, placed in the current directory"
"gem:Create a simple gem, suitable for development with bundler"
"platform:Displays platform compatibility information"
"clean:Clean up unused gems in your Bundler directory"
"doctor:Display warnings about common problems"
"remove:Removes gems from the Gemfile"
)
_describe -t commands 'command' commands "$@"
}
_bundle_gems() {
local -a gems=($(bundle show | awk '/^ / { print $2 }'))
if [[ $? == 0 ]]; then
_values 'gems' $gems
fi
}
_bundle_groups() {
if [[ -e Gemfile ]]; then
local -a groups=(${(@f)"$(awk '/^ *group *:/{sub(/^ *group *:/, ""); print $1}' Gemfile)"})
_values 'groups' $groups
fi
}
_bundle_config_subcommands() {
local subcommands;
subcommands=(
"list:print a list of all bundler configuration"
"get:print the value of that configuration setting"
"set:set <name> <value> defaults to setting configuration"
"unset:delete the configuration"
)
_describe -t subcommands 'subcommand' subcommands "$@"
}
_arguments -C -A "-v" -A "--version" \
'(- 1 *)'{-v,--version}'[display version information]' \
'1: :->cmds' \
'*:: :->args' && ret=0
'(- 1 *)'{-v,--version}'[display version information]' \
'(-r --retry)'{-r,--retry}'[specify the number of times you with to attempt network commands]:number:' \
'(-v --verbose)'{-V,--verbose}'[print out additional logging information]' \
'--no-color[print all output without color]' \
'1: :_bundle_commands' \
'*:: :->args' && ret=0
case $state in
cmds)
_values "bundle command" \
"install[Install the gems specified by the Gemfile or Gemfile.lock]" \
"update[Update dependencies to their latest versions]" \
"package[Package the .gem files required by your application]" \
"exec[Execute a script in the context of the current bundle]" \
"config[Specify and read configuration options for bundler]" \
"check[Determine whether the requirements for your application are installed]" \
"list[Show all of the gems in the current bundle]" \
"show[Show the source location of a particular gem in the bundle]" \
"console[Start an IRB session in the context of the current bundle]" \
"open[Open an installed gem in the editor]" \
"viz[Generate a visual representation of your dependencies]" \
"init[Generate a simple Gemfile, placed in the current directory]" \
"gem[Create a simple gem, suitable for development with bundler]" \
"help[Describe available tasks or one specific task]"
ret=0
;;
args)
case $line[1] in
help)
_values 'commands' 'install update package exec config check list show console open viz init gem help' && ret=0
;;
install)
_arguments \
'(--no-color)--no-color[disable colorization in output]' \
'(--local)--local[do not attempt to connect to rubygems.org]' \
'(--quiet)--quiet[only output warnings and errors]' \
'(--gemfile)--gemfile=-[use the specified gemfile instead of Gemfile]:gemfile' \
'(--system)--system[install to the system location]' \
'(--deployment)--deployment[install using defaults tuned for deployment environments]' \
'(--frozen)--frozen[do not allow the Gemfile.lock to be updated after this install]' \
'(--path)--path=-[specify a different path than the system default]:path:_files' \
'(--binstubs)--binstubs=-[generate bin stubs for bundled gems to ./bin]:directory:_files' \
'(--without)--without=-[exclude gems that are part of the specified named group]:groups'
ret=0
;;
exec)
_normal && ret=0
;;
(open|show)
_gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') )
if [[ $_gems != "" ]]; then
_values 'gems' $_gems && ret=0
fi
;;
*)
_opts=( $(bundle help $line[1] | sed -e '/^ \[-/!d; s/^ \[\(-[^=]*\)=.*/\1/') )
_opts+=( $(bundle help $line[1] | sed -e '/^ -/!d; s/^ \(-.\), \[\(-[^=]*\)=.*/\1 \2/') )
if [[ $_opts != "" ]]; then
_values 'options' $_opts && ret=0
fi
;;
esac
;;
args)
case $words[1] in
help)
local -a commands=('install' 'update' 'cache' 'exec' 'config' 'help' 'add' 'binstubs'
'check' 'show' 'outdated' 'console' 'open' 'list' 'lock' 'lock' 'viz' 'init'
'gem' 'platform' 'clean' 'doctor' 'remove')
_arguments -C \
'1: :($commands)' \
&& ret=0
;;
install)
local -a policies=('HighSecurity' 'MediumSecurity' 'LowSecurity' 'AlmostNoSecurity' 'NoSecurity')
_arguments \
'--binstubs=-[generate bin stubs for bundled gems to ./bin]:directory:_files -/' \
'--clean[remove any gems not present in the current Gemfile]' \
'--deployment[install using defaults tuned for deployment environments]' \
'--redownload[force download every gem, even if the required versions are already available locally]' \
'--frozen[do not allow the Gemfile.lock to be updated after this install]' \
'--full-index[download and cache the index file of all gems]' \
'--gemfile=-[use the specified gemfile instead of Gemfile]:gemfile:_files' \
'(-j --jobs)'{-j,--jobs}'[the maximum number of parallel download and install jobs]:number' \
'--local[do not attempt to connect to rubygems.org]' \
'--no-cache[do not update the cache in vendor/cache with newly installed gems]' \
'--no-prune[do not remove stale gem from cache after installation]' \
'--path=-[specify a different path than the system default]:path:_files' \
'--quiet[only output warnings and errors]' \
'--shebang=-[specify ruby executable to execute scripts]:ruby:_files' \
'--standalone=-[create standalone bundles]:groups:_bundle_groups' \
'--system[install to the system location]' \
"--trust-policy=-[apply the Rubygems security policy]:arg:($policies)" \
'--with=-[include gems that are part of the specified named group]:groups:_bundle_groups' \
'--without=-[exclude gems that are part of the specified named group]:groups:_bundle_groups' \
&& ret=0
;;
update)
_arguments \
'--all[update all gems specified in Gemfile]' \
\*{--group,-g}=-'[only update the gems in the specified group]' \
'--source=-[the name of a source used in the Gemfile]:url' \
'--local[do not attempt to fetch gems remotely and use the gem cached instead]' \
'--ruby[update the locked version of Ruby to the current version of Ruby]' \
'--bundler[update the locked version of bundler to invoked bundler version]' \
'--full-index[fall back to using the single-file index of all gems]' \
'(-j --jobs)'{-j,--jobs}'[specify the number of jobs to run in parallel]:number' \
'--retry=-[retry failed network or git requests for number times]:number' \
'--quiet[only output warnings and errors]' \
'--redownload[force download every gem, even if the required versions are already available locally]' \
'--patch[prefer updating only to next patch version]' \
'--minor[prefer updating only to next minor version]' \
'--major[prefer updating only to next major version (default)]' \
'--strict[do not allow any gem to be updated past latest --patch | --minor | --major]' \
'--conservative[use bundle install conservative update behavior]' \
'*:: :_bundle_gems' \
&& ret=0
;;
cache)
_arguments \
'--all[include all sources]' \
'--all-platforms[include gems for all platforms present in the lockfile, not only the current one]' \
'--cache-path=-[specify a different cache path than the default(vendor/cache)]: :_files -/' \
'--gemfile=-[use the specified gemfile instead of Gemfile]:gemfile:_files' \
"--no-install[don't install the gems, only update the cache]" \
"--no-prune[don't remove stale gems from the cache]" \
'--path=-[specify a different path than the system default($BUNDLE_PATH or $GEM_HOME)]: :_files' \
'--quite[only output warnings and errors]' \
'--frozen[do not allow the Gemfile.lock to be updated after this bundle cache operation]' \
'--no-color[disable colorization in output]' \
'(-r --retry)'{-r,--retry}=-'[specify the number of times you with to attempt network commands]:nums' \
'(-V --verbose)'{-v,--verbose}'[enable verbose output mode]' \
&& ret=0
;;
exec)
_arguments \
'--keep-file-descriptors[exec will revert to the 1.9 behavior of passing all file descriptors to the new process]' \
'*:: :_normal' \
&& ret=0
;;
config)
_arguments -C \
'1: :_bundle_config_subcommands' \
'--local[use local configuration]' \
'--global[use global configuration]' \
&& ret=0
;;
add)
_arguments \
'(-v --version)'{-v,--version}=-'[specify version requirements for the added gem]:version' \
'(-g --group)'{-g,--group}=-'[specify the group for the added gem]:group:_bundle_groups' \
'(-s --source)'{-s,--source}=-'[specify the source for the added gem]: :_files' \
'(-r --require)'{-r,--require}=-'[adds require path to gem]: :_files' \
'--path=-[specify the file path for the added gem]: :_files -/' \
'--git=-[specify the git source for the added gem]:git' \
'--github=-[specify the github source for the added gem]:github' \
'--branch=-[specify the git branch for the added gem]:branch' \
'--ref=-[specify the git ref for the added gem]' \
"--glob=[specify the location of a dependency's .gemspec, expanded within Ruby]:glob" \
'--quiet[do not print progress information to the starndard output]' \
'--skip-install[adds the gem to the Gemfile but does not install it]' \
'--optimistic[adds optimistic declaration of version]' \
'--strict[adds strict declaration of version]' \
'1::gem:' \
&& ret=0
;;
binstubs)
_arguments \
'--force[overwrite existing binstubs if they exist]' \
'--path=-[the location to install the specified binstubs to]: :_files -/' \
'--standalone[makes binstubs that can work without depending on Rubygems or Bundler at runtime]' \
'--shebang=-[specify a different shebang executable name than the default(default: ruby)]: :_files' \
'--all[create binstubs for all gems in the bundle]' \
'1::gem:' \
&& ret=0
;;
check)
_arguments \
'--dry-run[locks the Gemfile before running the command]' \
'--gemfile=-[use the specified gemfile instead of the Gemfile]: :_files' \
'--path=-[specify a different path than the system default($BUNDLE_PATH or $GEM_HOME)]: :_files -/' \
&& ret=0
;;
show)
_arguments \
'--paths[list the paths of all gems that are required by your Gemfile]' \
'1:: :_bundle_gems' \
&& ret=0
;;
outdated)
_arguments \
'--local[do not attempt to fetch gems remotely and use the gem cache instead]' \
'--pre[check for newer pre-release gems]' \
'--source[check against a specific source]' \
'--strict[only list newer versions allowed by your Gemfile requirements]' \
{--parseable,--porcelain}'[use minimal formatting for more parsable output]' \
'--group=-[list gems from a specific group]:group:_bundle_groups' \
'--groups[list gems organized by groups]' \
'--major[prefer updating to next major version(default)]' \
'--minor[prefer updating only to next minor version]' \
'--patch[prefer updating only to next patch version]' \
'--filter-major[only list major new versions]' \
'--filter-minor[only list minor new versions]' \
'--filter-patch[only list patch new versions]' \
'--only-explicit[only list gems specified in your Gemfile, not their dependencies]' \
'*:: :_bundle_gems' \
&& ret=0
;;
console)
_arguments \
'--no-color[disable colorization in output]' \
'(-r --retry)'{-r,--retry}=-'[specify the number of times you with to attempt network commands]:num' \
'(-v --verbose)'{-v,--verbose}=-'[enable verbose output mode]' \
'1:: :_bundle_groups' \
&& ret=0
;;
open)
_arguments \
'1:: :_bundle_gems' \
&& ret=0
;;
list)
_arguments \
'--name-only[print only the name of each gem]' \
'--paths[print the path to each gem in the bundle]' \
'--without-group=-[a space-separated list of groups of gems to skip during printing]: :_bundle_groups' \
'--only-group=-[a space-separated list of groups of gems to print]: :_bundle_groups' \
&& ret=0
;;
lock)
_arguments \
'--update=-[ignores the existing lockfile]' \
'--local[do not attempt to connect to rubygems.org]' \
'--print[prints the lockfile to STDOUT instead of writing to the file system]' \
'--lockfile=-[the path where the lick file should be written to]: :_files' \
'--full-index[fall back to using the single file index of all gems]' \
'--add-platform=-[add a new platform to the lockfile, re-resolving for the addition of that platform]' \
'--remove-platform=-[remove a platform from the lockfile]' \
'--normalize-platforms[normalize lockfile platforms]' \
'--patch[if updating, prefer updating only to next patch version]' \
'--minor[if updating, prefer updating only to next minor version]' \
'--major[if updating, prefer updating to next major version(default)]' \
'--strict[if updating, do not allow any gem to be updated past latest --patch | --minor | --major]' \
'--conservative[if updating, use bundle install conservative update behavior]' \
&& ret=0
;;
viz)
_arguments \
'(-f --file)'{-f,--file}=-'[the name to use for the generated file]: :_files' \
'(-F --format)'{-F,--format}=-'[output format option]: :(png jpg svg dot)' \
'(-R --requirements)'{-r,--requirements}'[set to show the version of each required dependency]' \
'(-v --version)'{-v,--version}'[set to show each version]' \
'(-W --without)'{-W,--without}'[exclude gems that are part of the specified named group]' \
&& ret=0
;;
init)
_arguments \
'--gemspec=-[use the specified .gemspec to create the Gemfile]: :_files' \
'--gemfile=[use the specified name for the gamfile instead of Gemfile]:name' \
&& ret=0
;;
gem)
_arguments \
'(--exe -b --bin --no-exe)'{--exe,-b,--bin}'[specify that bundler should create a binary executable in the generated rubygem project]' \
'(--exe -b --bin --no-exe)--no-exe[do not create a binary]' \
'(--no-coc)--coc[add a CODE_OF_CONDUCT.md to the root of the generated project]' \
'(--coc)--no-coc[do not create a CODE_OF_CONDUCT.md]' \
'(--no-ext --ext)--ext=[add boilerplate for C or Rust extension code to the generated project]: :(c rust)' \
'(--ext --no-ext)--no-ext[do not add extension code]' \
'(--no-mit --mit)--mit[add an MIT license to a LICENSE.txt file in the root of the generated project]' \
'(--mit --no-mit)--no-mit[do not create a LICENSE.txt]' \
'(-t --test --no-test)'{-t,--test}=-'[specify the test framework]: :(minitest rspec test-unit)' \
'(-t --test --no-test)--no-test[do not use a test framework]' \
'(--ci --no-ci)--ci=-[specify the continuous integration service]: :(github travis gitlab circle)' \
'(--ci --no-ci)--no-ci[do not use a continuous integration service]' \
'(--linter --no-linter)--linter=-[specify the linter and code formatter]: :(rubocop standard)' \
'(--linter --no-linter)--no-linter[do not add a linter]' \
'(-e --edit)'{-e,--edit}=-'[open the resulting GEM_NAME.gemspec in EDITOR]' \
'1::gem_name:' \
&& ret=0
;;
platform)
_arguments \
'--ruby[it will display the ruby directive information]' \
&& ret=0
;;
clean)
_arguments \
'--dry-run[print the changes, but do not clean the unused gems]' \
'--force[forces cleaning up unused gems even if Bundler is configured to use globally installed gems]' \
&& ret=0
;;
doctor)
_arguments \
'--quiet[only output warnings and errors]' \
'--gemfile=-[the location of the Gemfile which Bundler should use]: :_files' \
&& ret=0
;;
remove)
_arguments \
'--install[runs bundle install after the given gem have been removed from the Gemfile]' \
'*:: :_bundle_gems' \
&& ret=0
;;
esac
;;
esac
return ret

View File

@ -1,15 +1,41 @@
#compdef cap
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Capistrano (http://capify.org).
# Completion script for Capistrano 3.17.1 (https://capistranorb.com/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Bruno Michel (https://github.com/nono)
# * Shohei Yoshida (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
@ -17,32 +43,43 @@
local curcontext="$curcontext" state line cmds ret=1
_arguments -C \
{-d,--debug}'[Prompts before each remote command execution]' \
{-e,--explain}'[Displays help (if available) for the task]:task' \
{-F,--default-config}'[Always use default config, even with -f]' \
{-f,--file}'[A recipe file to load. May be given more than once]:file:_files' \
{-H,--long-help}'[Explain these options and environment variables]' \
{-h,--help}'[Display this help message]' \
{-l,--logger}'[Choose logger method. STDERR used by default]:file:_files' \
{-n,--dry-run}'[Prints out commands without running them]' \
{-p,--password}'[Immediately prompt for the password]' \
{-q,--quiet}'[Make the output as quiet as possible]' \
{-r,--preserve-roles}'[Preserve task roles]' \
{-S,--set-before}'[Set a variable before the recipes are loaded]:variable' \
{-s,--set}'[Set a variable after the recipes are loaded]:variable' \
{-T,--tasks}'[List all tasks (matching optional PATTERN) in the loaded recipe files]:pattern' \
{-t,--tool}'[Abbreviates the output of -T for tool integration]' \
{-V,--version}'[Display the Capistrano version, and exit]' \
{-v,--verbose}'[Be more verbose. May be given more than once]' \
{-X,--skip-system-config}'[Do not load the system config file (capistrano.conf)]' \
{-x,--skip-user-config}'[Do not load the user config file (.caprc)]' \
'*: :->cmds' && ret=0
'--backtrace=[Enable full backtrace]: :(stderr stdout)' \
'--comments[Show commented tasks only]' \
'--job-stats[Display job statistics]:level' \
'--suppress-backtrace[Suppress backtrace lines matching regexp PATTERN]:pattern' \
'(-A --all)'{-A,--all}'[Show all tasks, even uncommented ones]' \
'(-B --build-all)'{-B,--build-all}'[Build all prerequisites, including those which are up-to-date]' \
'(-C --directory)'{-C,--directory}'[Change to DIRECTORY before doing anything]: :_files -/' \
'(-D --describe)'{-D,--describe}'[Describe the tasks, then exit]:pattern' \
'(-E --execute-continue)'{-E,--execute-continue}'[Execute Ruby code and exit]:code' \
'(-f --rakefile)'{-f,--rakefile}'[Use FILENAME as the rakefile to search for]: :_files' \
'(-G --no-system --nosystem)'{-G,--no-system,--nosystem}'[Use standard project Rakefile search paths, ignore system wide rakefiles]' \
'(-g --system)'{-g,--system}'[Using system wide rakefiles]' \
'(-I --libdir)'\*{-I,--libdir}'[Include LIBDIR in the search path for required modules]: :_files -/' \
'(-j --jobs)'{-j,--jobs}'[Specifies the maximum number of tasks to execute in parallel]:num' \
'(-m --multitask)'{-m,--multitask}'[Treat all tasks as multitasks]' \
'(-N --no-search --nosearch)'{-N,--no-search,--nosearch}'[Do not search parent directories for the Rakefile]' \
'(-P --prereqs)'{-P,--prereqs}'[Display the tasks and dependencies, then exit]' \
'--execute-print[Execute some Ruby code, print the result, then exit]:code' \
'--require[Require MODULE before executing rakefile]:module' \
'(-R --rakelibdir --rakelib)'{-R,--rakelibdir,--rakelib}'[Auto-import any .rake files in RAKELIBDIR]: :_files -/' \
'(-t --trace)'{-t,--trace}'[Turn on invoke/execute tracing, enable full backtrace]: :(stderr stdout)' \
'(-T --tasks)'{-T,--tasks}'[Display the tasks with descriptions]::pattern' \
'(-W --where)'{-W,--where}'[Describe the tasks then exit]::pattern' \
'(-X --no-deprecation-warnings)'{-X,--no-deprecation-warnings}'[Disable the deprecation warnings]' \
'(- *)'{-V,--version}'[Display the program version]' \
'(-n --dry-run)'{-n,--dry-run}'[Do a dry run without executing actions]' \
'(-r --roles)'{-r,--roles}'[Run SSH commands only on hosts matching these roles]:roles' \
'(-z --hosts)'{-z,--hosts}'[Run SSH commands only on matching hosts]:hosts' \
'(-p --print-config-variables)'{-p,--print-config-variables}'[Display the defined config variables before starting the deployment tasks]' \
'(- *)'{-h,-H,--help}'[Display help message]' \
'*: :->cmds' && ret=0
case $state in
cmds)
cmds=( ${(f)"$(_call_program commands cap -T 2> /dev/null | sed -e '/ # /!d; s/:/\\:/g; s/cap \([A-Za-z0-9\\:_-]*\) .*# /\1:/')"} )
_describe -t commands 'cap command' cmds && ret=0
;;
cmds)
cmds=( ${(f)"$(_call_program commands cap -T 2>/dev/null | sed -e '/ # /!d; s/:/\\:/g; s/cap \([A-Za-z0-9\\:_-]*\) .*# /\1:/')"} )
_describe -t commands 'cap command' cmds && ret=0
;;
esac
return ret

89
src/_cask Normal file
View File

@ -0,0 +1,89 @@
#compdef cask
# ------------------------------------------------------------------------------
# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for cask (https://cask.readthedocs.io)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * ptrv <mail@petervasil.net>
# * Johan Andersson <johan.rejeep@gmail.com>
# * Sebastien Duthil <duthils@free.fr>
#
# ------------------------------------------------------------------------------
function _cask() {
local ret=1 state
_arguments \
':subcommand:->subcommand' \
'*:: :->subcmds' && ret=0
case $state in
subcommand)
subcommands=(
"build:build all Elisp files in the files directive"
"clean-elc:remove all byte compiled Elisp files in the files directive"
"exec:execute command with correct 'exec-path' and 'load-path'"
"exec-path:print 'exec-path' for all packages and dependencies"
"files:print list of files specified in the files directive"
"help:display usage information or documentation for specified command"
"info:show info about the current package"
"init:initialize the current directory with a Cask-file"
"install:install all packages specified in the Cask-file"
"link:manage links"
"list:list dependencies"
"load-path:print 'load-path' for all packages and dependencies"
"outdated:print list of outdated packages"
"package:build package and put in specified directory (default: dist)"
"package-directory:print current package installation directory"
"path:print 'exec-path' for all packages and dependencies"
"pkg-file:write a 'define-package' file"
"update:update package version"
"upgrade-cask:upgrade Cask itself and its dependencies"
"upgrade:upgrade Cask itself and its dependencies"
"version:print program version"
)
_describe -t subcommands 'cask subcommands' subcommands && ret=0
esac
case "$words[1]" in
init)
_arguments \
'(--dev)--dev[Run in dev mode]' && ret=0 ;;
exec)
_generic
;;
esac
return ret
}
_cask "$@"

339
src/_ccache Normal file
View File

@ -0,0 +1,339 @@
#compdef ccache -P -value-,CCACHE_*,-default-
# zsh completion script for ccache 4.10.2
# Copyright 2018 CERN for the benefit of the LHCb Collaboration.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
# allow users to define their better compilers
# inspired by _cmake_compilers
# users could override with
#
# _ccache_compilers() {
# local -a _ccache_compilers
# _ccache_compilers=(gcc g++ clang clang++)
# _wanted compilers expl "compiler" compadd -- $_ccache_compilers
# }
(( $+functions[_ccache_compilers] )) ||
_ccache_compilers() {
_command_names -e
}
_ccache_booleans() {
_message 'There are no "false" values, unset variable to disable'
local description=${1:-boolean}
local -a booleans=('true' 'yes')
_describe -t booeans "$description" booleans
}
(( $+functions[_ccache_sloppiness] )) ||
_ccache_sloppiness() {
_values -s ',' \
'clang_index_store[ignore the clang compiler option -index-store-path and its argument]' \
'file_stat_matches[rely on mtimes and ctimes]' \
'file_stat_matches_ctime[ignore ctime when file_stat_matches is enabled]' \
'gcno_cwd[not hash the current working directory]' \
'incbin[pretend the .incbin directive]' \
'include_file_ctime[ignore headers ctime too new]' \
'include_file_mtime[ignore headers mtime too new]' \
'ivfsoverlay[ignore the clang option -ivfsoverlay and its argument]' \
'locale[include locale environment variables in the hash]' \
'module[enable cache even if -fmodules is used]' \
'pch_defines[be sloppy about #defines in pch]' \
'random_seed[ignore the -frandom-seed option and its argument]' \
'system_headers[only check non-system headers in direct mode]' \
'time_macros[ignore __DATE__ and __TIME__]'
}
(( $+functions[_ccache_compilerchecks] )) ||
_ccache_compilerchecks() {
local -a compiler_check_values=(
'content:the actual compiler binary'
'mtime:mtime and size of the compiler'
'none:ignore compiler for hashing'
'string\::any hard coded string (pre-computed version)'
'%compiler%\ -v:any compiler invocation output'
)
_describe -t compilerchecks "compiler information included in the hash" compiler_check_values
}
(( $+functions[_ccache_compiler_type] )) ||
_ccache_compiler_type() {
local -a compiler_types=(
'auto:guess compiler name'
'clang:clang-based compiler'
'clang-cl:clang-cl'
'gcc:gcc-based compiler'
'icl:Intel compiler on Windows'
'msvc:Microsoft Visual C++'
'nvcc:NVCC CUDA compiler'
'other:any compiler other than the known types'
)
_describe -t compiler_types "compiler types" compiler_types
}
if [[ "$service" = -value-* ]]; then
case $service in
*CCACHE_*DIR*)
# CCACHE_BASEDIR: relative to which top level paths are hashed
# CCACHE_DIR: where the cache and config are kept
# CCACHE_TEMPDIR: where temporary files are kept
# all: a single path
_path_files -/
;;
*CCACHE_CC*)
_ccache_compilers
;;
*CCACHE_COMPILERCHECK*)
_ccache_compilerchecks
;;
*CCACHE_*COMPRESS*)
_ccache_booleans "write compressed cache"
;;
*CCACHE_EXTENSION*)
_alternative ':set extension for intermediate files: '
;;
*CCACHE_*DIRECT*)
_ccache_booleans "use direct mode"
;;
*CCACHE_*DISABLE*)
_ccache_booleans "disable cache usage"
;;
*CCACHE_EXTRAFILES*)
local sep=:
compset -P "*${sep}"
compset -S "${sep}*" || suf="$sep"
_files "" -r "${sep}"' /\t\t\-' "$@"
;;
*CCACHE_*HARDLINK*)
_ccache_booleans "create hard links rather than copies"
;;
*CCACHE_*HASHDIR*)
_ccache_booleans "include the cwd in the hash"
;;
*CCACHE_IGNOREHEADERS*)
_dir_list
;;
*CCACHE_*COMMENTS*)
_ccache_booleans "consider comments in hashing"
;;
*CCACHE_LIMIT_MULTIPLE*)
_alternative ":clean up down to level (e.g. 0.8): "
;;
*CCACHE_LOGFILE*)
_path_files -g "*(/) *.log"
;;
*CCACHE_MAXFILES*)
_alternative ":maximum number of files in the cache (0= no limit): "
;;
*CCACHE_MAXSIZE*)
_alternative ':maximum cache size (0= no limit) with suffix k,M,G,T or Ki,Mi,Gi,Ti: '
;;
*CCACHE_PATH*)
_alternative ':PATH for compiler lookup (instead of $PATH):_dir_list'
;;
*CCACHE_PREFIX*)
_alternative ':prefixes for compiler invocation: '
;;
*CCACHE_PREFIX_CPP*)
_alternative ':prefixes for preprocessor invocation: '
;;
*CCACHE_*READONLY*)
_ccache_booleans "treat cache as read-only"
;;
*CCACHE_*READONLY_DIRECT*)
_ccache_booleans "retrieve from read-only cache in direct mode"
;;
*CCACHE_*RECACHE*)
_ccache_booleans "use cache in write-only mode"
;;
*CCACHE_*CPP2*)
_ccache_booleans "pass original rather than preprocessed source code to compiler"
;;
*CCACHE_SLOPPINESS*)
_ccache_sloppiness
;;
*CCACHE_*STATS*)
_ccache_booleans "update statistics counters"
;;
*CCACHE_UMASK*)
_alternative ":umask value (octal): "
;;
*CCACHE_*UNIFY*)
_ccache_booleans "normalize sources prior to processing"
;;
esac
return
fi
__ccache_config_keys() {
local -a keys=(
'absolute_paths_in_stderr:rewrite relative paths in error output to absolute paths'
'base_dir:specify relative to which top level paths are hashed'
'cache_dir:specify where the cache is kept'
'compiler:specify compiler'
'compiler_check:compiler information included in the hash'
'compiler_type:force a compiler type'
'compression:write compressed cache'
'compression_level:cache compression level'
'cpp_extension:set extensions for intermediate files'
'debug:enable debug mode'
'debug_dir:specify directory to write debug files'
'debug_level:specify the amount of debug information'
'depend_mode:enable depend mode'
'direct_mode:use direct mode'
'disable:disable cache usage'
'extra_files_to_hash:additional files to consider in hashing'
'file_clone:use file cloning to store and fetch cached compiler results'
'hard_link:create hard links rather than copies'
'hash_dir:include the cwd in the hash'
'ignore_headers_in_manifest:set paths to headers to ignore in hashing'
'ignore_options:list of options that ccache will ignore'
'inode_cache:cache source file hashes based on device, inode and timestamps'
'keep_comments_cpp:consider comments in hashing'
'log_file:specify a log file'
'max_files:maximum number of files in the cache'
'max_size:maximum size of the cache'
'msvc_dep_prefix:specify the prefix of included files output for MSVC compiler'
'namespace:namespace will be added to the hashed data for each compilation'
'path:PATH for compiler lookup (instead of $PATH)'
'pch_external_checksum:use .sum file for hash'
'prefix_command:prefixes for compiler invocation'
'prefix_command_cpp:prefixes for preprocessor invocation'
'read_only:treat cache as read-only'
'read_only_direct:retrieve from read-only cache in direct mode'
'recache:use cache in write-only mode'
'remote_only:use remote storage'
'remote_storage:specify one or several storage backends'
'reshare:write results to remote storage even for local storage cache hits'
'run_second_cpp:pass original rather than preprocessed source code to compiler'
'sloppiness:hash files sloppy'
'stats:update statistics counters'
'stats_log:write statistics counter updates to the specified file'
'temporary_dir:specify where temporary files are kept'
'umask:set umask for ccache and child processes (e.g. for sharing cache)'
)
_describe -t configkeys "configuration keys" keys -S '='
}
if compset -P '--set-config=*='; then
case $IPREFIX in
( *=absolute_paths_in_stderr= | *=compression= | *=debug= | *=depend_mode= | *=direct_mode= | *=disable= | *=file_clone= | *=hard_link= | *=hash_dir= | *=inode_cache= | *=keep_comments_cpp= | *=read_only= | *=read_only_direct= | *=recache= | *=run_second_cpp= | *=stats= | *=unify= )
local -a booleans=('true' 'false')
_describe -t booleans 'boolean' booleans
;;
(*=base_dir= | *=cache_dir= | *=debug_dir= | *=temporary_dir=)
_path_files -/
;;
(*=compiler=)
_ccache_compilers
;;
(*=compiler_check=)
_ccache_compilerchecks
;;
(*=compiler_type=)
_ccache_compiler_type
;;
(*=extra_files_to_hash=)
local sep=:
compset -P "*${sep}"
compset -S "${sep}*" || suf="$sep"
_files "" -r "${sep}"' /\t\t\-' "$@"
;;
( *=ignore_headers_in_manifest= | *=path= )
_dir_list
;;
(*=log_file= | *=stats_log= )
_path_files -g "*(/) *.log"
;;
(*=sloppiness=)
_ccache_sloppiness
;;
*=umask=)
_alternative ":umask value (octal): "
;;
esac
elif [[ $words[2] == -* ]]; then
# if the first argument starts with -, we are in configure-ccache mode
_arguments \
'*'{-o,--set-config=}"[set configuration key]:keys:__ccache_config_keys" \
'(: -)'{-h,--help}'[show help message]' \
'(: -)'{-V,--version}'[print version and copyright information]' \
'(-c --cleanup)'{-c,--cleanup}'[delete old files and recalculate size counters]' \
'(-C --clear)'{-C,--clear}'[clear the cache completely (except configuration)]' \
'--config-path[operate on configuration file PATH instead of the default]: :_files' \
'(-d --dir)'{-d,--dir}'[operate on cache directory PATH instead of the default]: :_files -/' \
'--evict-namespace[remove file created in namespace NAMESPACE]:namespace' \
'--evict-older-than[remove files older than AGE]:age' \
'(-F --max-files=)'{-F,--max-files=}'[set maximum number of files in cache]:number of files in cache: ' \
'(-M --max-size=)'{-M,--max-size=}'[set maximum size of cache]:cache size: ' \
'(-X --recompress)'{-X,--recompress}'[recompress the cache to level LEVEL]:level' \
'--recompress-threads[use up to THREADS threads when recompressing the cache]:threads' \
'(-x --show-compression)'{-x,--show-compression}'[show compression statistics]' \
'(-p --show-config)'{-p,--show-config}'[show current configuration options]' \
'--show-log-stats[print statistics counters from the stats log in human-readable format]' \
'(-s --show-stats)'{-s,--show-stats}'[show statistics summary]' \
'(-v --verbose)'{-v,--verbose}'[increase verbosity]' \
'(-z --zero-stats)'{-z,--zero-stats}'[zero statistics counters]' \
'--trim-dir[remove old files from directory _PATH_]: :_files -/' \
'--trim-max-size[specify the maximum size for --trim-dir]:size' \
'--trim-method[specify the method for --trim-dir]: :(atime mtime)' \
'--trim-recompress[recompress to level LEVEL]:level' \
'--trim-recompress-threads[use up to THREADS threads when recompressing]:threads' \
'--checksum-file[print the checksum of the file at PATH]: :_files' \
'--extract-result[extract file data stored in result file at PATH to the current working directory]' \
'--format[specify format for --print-log-stats and --print-stats]:format:(tab json)' \
'(-k --get-config)'{-k,--get-config}'[print the value of configuration key]:key' \
'--hash-file[print the hash of the file at PATH]: :_files' \
'--inspect[print result/manifest file at PATH in human-readable format]' \
'--print-log-stats[print statistics counter IDs and corresponding values from the stats log]' \
'--print-stats[print statistics counter IDs and corresponding values in machine-parsable format]' \
'--print-version[print version only]'
elif [[ $CURRENT -eq 2 ]]; then
_ccache_compilers
else
# the command line already looks like 'ccache <compiler> ...'
# forward to the completion function of the compiler
(( CURRENT-- ))
shift words
_normal
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

994
src/_cf Normal file
View File

@ -0,0 +1,994 @@
#compdef cf
# ------------------------------------------------------------------------------
#
# Copyright 2015 Ferran Rodenas & Danny Rosen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------------
#
# Description
# -----------
#
# Completion script for Cloud Foundry CLI (https://github.com/cloudfoundry/cli#downloads)
#
# ------------------------------------------------------------------------------
#
# Authors
# -------
#
# * Ferran Rodenas (https://github.com/frodenas)
# * Danny Rosen (https://github.com/dannyzen)
#
# ------------------------------------------------------------------------------
# ----------------------
# ----- Helper functions
# ----------------------
# Output a selectable list of organizations
__cf_orgs() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf orgs | awk 'NR>3{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'ORG' cont_cmd
}
# Output a selectable list of spaces
__cf_spaces() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf spaces | awk 'NR>3{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'SPACE' cont_cmd
}
# Output a selectable list of applications
__cf_apps() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf apps | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'APP' cont_cmd
}
# Output a selectable list of stacks
__cf_stacks() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf stacks | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'STACK' cont_cmd
}
# Output a selectable list of services
__cf_marketplace_services() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf marketplace | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'SERVICE' cont_cmd
}
# Output a selectable list of services
__cf_services() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf services | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'SERVICE' cont_cmd
}
# Output a selectable list of domains
__cf_domains() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf domains | grep -v shared | awk 'NR>2{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'DOMAIN' cont_cmd
}
# Output a selectable list of shared domains
__cf_shared_domains() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf domains | grep -v owned | awk 'NR>2{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'SHARED-DOMAIN' cont_cmd
}
# Output a selectable list of hostnames
__cf_hostnames() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf routes | awk 'NR>3{print $2}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'ROUTE' cont_cmd
}
# Output a selectable list of buildpacks
__cf_buildpacks() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf buildpacks | awk 'NR>3{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'BUILDPACK' cont_cmd
}
# Output a selectable list of feature flags
__cf_feature_flags() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf feature-flags | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'FEATURE-FLAG' cont_cmd
}
# Output a selectable list of plugin repos
__cf_repo_plugins() {
declare -a cont_cmd
cont_cmd=($(CF_COLOR=false CF_TRACE=false cf list-plugin-repos | awk 'NR>3{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'REPO-PLUGIN' cont_cmd
}
# Output a selectable list of plugins
__cf_plugins() {
declare -a cont_cmd
cont_cmd=($(cf plugins | awk 'NR>4{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'PLUGIN' cont_cmd
}
# Output a selectable list of targets (requires cf-targets plugin)
__cf_targets() {
declare -a cont_cmd
cont_cmd=($(cf targets | awk '{print $1}'))
if [[ 'X$cont_cmd' != 'X' ]]
_describe 'TARGET' cont_cmd
}
# --------------------------
# ----- end Helper functions
# --------------------------
# --------------
# ----- Commands
# --------------
__login() {
_arguments \
'-a=[API endpoint (e.g. https://api.example.com)]:api endpoint:' \
'-u=[Username]:username:' \
'-p=[Password]:password:' \
'-o=[Organization]:organization name:__cf_orgs' \
'-s=[Space]:space name:__cf_spaces' \
'--sso[Use a one-time password to login]' \
'--skip-ssl-validation[Skip SSL validation]'
}
__logout() {
# no arguments
}
__passwd() {
_arguments \
'1:password:'
}
__target() {
_arguments \
'-o=[Organization]:organization name:__cf_orgs' \
'-s=[Space]:space name:__cf_spaces'
}
__api() {
_arguments \
'1:API url:' \
'--unset[Remove all api endpoint targeting]' \
'--skip-ssl-validation[Skip SSL validation]'
}
__auth() {
# no arguments
}
__apps() {
# no arguments
}
__app() {
_arguments \
'1:application name:__cf_apps' \
'--guid[Retrieve and display the given app guid. All other health and status output for the app is suppressed]'
}
__push() {
_arguments \
'1:application name:__cf_apps' \
'-b=[Custom buildpack by name (e.g. my-buildpack) or GIT URL or GIT BRANCH URL]:buildpack name:__cf_buildpacks' \
'-c=[Startup command, set to null to reset to default start command]:startup command:' \
'-d=[Domain (e.g. example.com)]:domain (e.g. example.com):__cf_domains' \
'-f=[Path to manifest]:file:_files:' \
'-i=[Number of instances]:number of instances:' \
'-k=[Disk limit (e.g. 256M, 1024M, 1G)]:disk limit (e.g. 256M, 1024M, 1G):' \
'-m=[Memory limit (e.g. 256M, 1024M, 1G)]:memory limit (e.g. 256M, 1024M, 1G):' \
'-n=[Hostname (e.g. my-subdomain)]:hostname (e.g. my-subdomain):' \
'-p=[Path to app directory or to a zip file of the contents of the app directory]:file:_files' \
'-s=[Stack to use (a stack is a pre-built file system, including an operating system, that can run apps)]:stack name:__cf_stacks:' \
'-t=[Maximum time (in seconds) for CLI to wait for application start, other server side timeouts may apply]:maximum time (in seconds):' \
'--no-hostname[Map the root domain to this app]' \
'--no-manifest[Ignore manifest file]' \
'--no-route[Do not map a route to this app and remove routes from previous pushes of this app]' \
'--no-start[Do not start an app after pushing]' \
'--random-route[Create a random route for this app]'
}
__scale() {
_arguments \
'1:application name:__cf_apps' \
'-i=[Number of instances]:number of instances:' \
'-k=[Disk limit (e.g. 256M, 1024M, 1G)]:disk limit (e.g. 256M, 1024M, 1G):' \
'-m=[Memory limit (e.g. 256M, 1024M, 1G)]:memory limit (e.g. 256M, 1024M, 1G):' \
'-f[Force restart of app without prompt]'
}
__delete() {
_arguments \
'1:application name:__cf_apps' \
'--f[Force deletion without confirmation]' \
'--r[Also delete any mapped routes]'
}
__rename() {
_arguments \
'1:application name:__cf_apps' \
'2:application name:'
}
__start() {
_arguments \
'1:application name:__cf_apps'
}
__stop() {
_arguments \
'1:application name:__cf_apps'
}
__restart() {
_arguments \
'1:application name:__cf_apps'
}
__restage() {
_arguments \
'1:application name:__cf_apps'
}
__restart-app-instance() {
_arguments \
'1:application name:__cf_apps' \
'2:application index:'
}
__events() {
_arguments \
'1:application name:__cf_apps'
}
__files() {
_arguments \
'1:application name:__cf_apps' \
'2::path:' \
'-i=[instance]'
}
__logs() {
_arguments \
'1:application name:__cf_apps' \
'--recent[Dump recent logs instead of tailing]'
}
__env() {
_arguments \
'1:application name:__cf_apps'
}
__set-env() {
_arguments \
'1:application name:__cf_apps' \
'2:env var name:' \
'3:env var value:'
}
__unset-env() {
_arguments \
'1:application name:__cf_apps' \
'2:env var name:'
}
__stacks() {
# no arguments
}
__stack() {
_arguments \
'1:stack name:__cf_stacks' \
'--guid[Retrieve and display the given stack guid. All other output for the stack is suppressed]'
}
__copy-source() {
_arguments \
'1:source application name:__cf_apps' \
'2:target application name:' \
'-o=[Org that contains the target application]:organization name:__cf_orgs' \
'-s=[Space that contains the target application]:space name:__cf_spaces' \
'--no-restart[Override restart of the application in target environment after copy-source completes]'
}
__create-app-manifest() {
_arguments \
'1:application name:__cf_apps' \
'-p=[Specify a path for file creation. If path not specified, manifest file is created in current working directory]:path:_files'
}
__marketplace() {
_arguments \
'-s=[Show plan details for a particular service offering]'
}
__services() {
# no arguments
}
__service() {
_arguments \
'1:service name:__cf_services' \
'--guid[Retrieve and display the given service guid. All other output for the service is suppressed]'
}
__create-service() {
_arguments \
'1:service:__cf_marketplace_services' \
'2:plan:' \
'3:service name:' \
'-c=[Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file]' \
'-t=[User provided tags]'
}
__update-service() {
_arguments \
'1:service name:__cf_services' \
'-p=[Change service plan for a service instance]' \
'-c=[Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file]' \
'-t=[User provided tags]'
}
__rename-service() {
_arguments \
'1:service name:__cf_services' \
'2:service name:'
}
__delete-service() {
_arguments \
'1:service name:__cf_services' \
'-f[Force deletion without confirmation]'
}
__create-service-key() {
_arguments \
'1:service name:__cf_services' \
'2:service key:' \
'-c=[Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file]'
}
__service-keys() {
_arguments \
'1:service name:__cf_services'
}
__service-key() {
_arguments \
'1:service name:__cf_services' \
'2:service key:'
}
__delete-service-key() {
_arguments \
'1:service name:__cf_services' \
'2:service key:' \
'-f[Force deletion without confirmation]'
}
__bind-service() {
_arguments \
'1:application name:__cf_apps' \
'2:service name:__cf_services' \
'-c=[Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file]'
}
__unbind-service() {
_arguments \
'1:application name:__cf_apps' \
'2:service name:__cf_services'
}
__create-user-provided-service() {
_arguments \
'1:service name:' \
'-p=[Credentials]' \
'-l=[Syslog Drain Url]'
}
__update-user-provided-service() {
_arguments \
'1:service name:__cf_services' \
'-p=[Credentials]' \
'-l=[Syslog Drain Url]'
}
__orgs() {
# no arguments
}
__org() {
_arguments \
'1:organization name:__cf_orgs' \
'--guid[Retrieve and display the given org guid. All other output for the org is suppressed]'
}
__create-org() {
_arguments \
'1:organization name:' \
'-q=[Quota to assign to the newly created org (excluding this option results in assignment of default quota)]'
}
__delete-org() {
_arguments \
'1:organization name:__cf_orgs' \
'-f[Force deletion without confirmation]'
}
__spaces() {
# no arguments
}
__space() {
_arguments \
'1:space name:__cf_spaces' \
'--guid[Retrieve and display the given space guid. All other output for the space is suppressed]' \
'--security-group-rules[Retrieve the rules for all the security groups associated with the space]'
}
__create-space() {
_arguments \
'1:space name:' \
'-o=[Org that contains the target application]:organization name:__cf_orgs' \
'-q=[Quota to assign to the newly created space (excluding this option results in assignment of default quota)]'
}
__delete-space() {
_arguments \
'1:space name:__cf_spaces' \
'-f[Force deletion without confirmation]'
}
__domains() {
# no arguments
}
__create-domain() {
_arguments \
'1:organization name:__cf_orgs' \
'2:domain:'
}
__delete-domain() {
_arguments \
'1:domain:__cf_domains' \
'-f[Force deletion without confirmation]'
}
__create-shared-domain() {
_arguments \
'1:domain:'
}
__delete-shared-domain() {
_arguments \
'1:domain:__cf_shared_domains' \
'-f[Force deletion without confirmation]'
}
__routes() {
_arguments \
'--orglevel[List all the routes for all spaces of current organization]'
}
__create-route() {
_arguments \
'1:space name:__cf_spaces' \
'2:domain:__cf_domains' \
'-n=[Hostname]'
}
__check-route() {
_arguments \
'1:hostname:__cf_hostnames' \
'2:domain:__cf_domains'
}
__map-route() {
_arguments \
'1:application name:__cf_apps' \
'2:domain:__cf_domains' \
'-n=[Hostname]:hostname:__cf_hostnames:'
}
__unmap-route() {
_arguments \
'1:application name:__cf_apps' \
'2:domain:__cf_domains' \
'-n=[Hostname]:hostname:__cf_hostnames:'
}
__delete-route() {
_arguments \
'1:domain:__cf_domains' \
'-n=[Hostname]:hostname:__cf_hostnames:' \
'-f[Force deletion without confirmation]'
}
__delete-orphaned-routes() {
_arguments \
'-f[Force deletion without confirmation]'
}
__buildpacks() {
# no arguments
}
__create-buildpack() {
_arguments \
'1:buildpack name:' \
'2:path:_files' \
'3:position:' \
'--enable[Enable the buildpack to be used for staging]' \
'--disable[Disable the buildpack from being used for staging]'
}
__update-buildpack() {
_arguments \
'1:buildpack name:__cf_buildpacks' \
'-p=[Path to directory or zip file]:file:_files' \
'-i=[The order in which the buildpacks are checked during buildpack auto-detection]' \
'--enable[Enable the buildpack to be used for staging]' \
'--disable[Disable the buildpack from being used for staging]' \
'--lock[Lock the buildpack to prevent updates]' \
'--unlock[Unlock the buildpack to enable updates]'
}
__rename-buildpack() {
_arguments \
'1:buildpack name:__cf_buildpacks' \
'2:new buildpack name:'
}
__delete-buildpack() {
_arguments \
'1:buildpack name:__cf_buildpacks' \
'-f[Force deletion without confirmation]'
}
__running-environment-variable-group() {
# no arguments
}
__staging-environment-variable-group() {
# no arguments
}
__set-staging-environment-variable-group() {
# no arguments
}
__set-running-environment-variable-group() {
# no arguments
}
__feature-flags() {
# no arguments
}
__feature-flag() {
_arguments \
'1:feature name:__cf_feature_flags'
}
__enable-feature-flag() {
_arguments \
'1:feature name:__cf_feature_flags'
}
__disable-feature-flag() {
_arguments \
'1:feature name:__cf_feature_flags'
}
__curl() {
_arguments \
'1:path:' \
'-i[Include response headers in the output]' \
'-v[Enable CF_TRACE output for all requests and responses]' \
'-X=[HTTP method]:http method:(GET POST PUT DELETE)' \
'-h=[Custom headers to include in the request, flag can be specified multiple times]' \
'-d=[HTTP data to include in the request body]' \
'--output[Write curl body to FILE instead of stdout]'
}
__config() {
_arguments \
'--async-timeout=[Timeout for async HTTP requests]' \
'--trace=[Trace HTTP requests]:trace:(true false)' \
'--color=[Enable or disable color]:color:(true false)' \
'--locale=[Set default locale. If LOCALE is CLEAR, previous locale is deleted]'
}
__oauth-token() {
# no arguments
}
__add-plugin-repo() {
_arguments \
'1:repo name:' \
'2:url:'
}
__remove-plugin-repo() {
_arguments \
'1:repo name:__cf_repo_plugins' \
'2:url:'
}
__list-plugin-repos() {
# no arguments
}
__repo-plugins() {
_arguments \
'-r=[Repo Name]:repo name:__cf_repo_plugins'
}
__plugins() {
_arguments \
'-checksum[Compute and show the sha1 value of the plugin binary file]'
}
__install-plugin() {
_arguments \
'1:plugin URL or path:_files' \
'-r=[repo name where the plugin binary is located]:repo name:__cf_repo_plugins'
}
__uninstall-plugin() {
_arguments \
'1:plugin name:__cf_plugins'
}
__save-target() {
_arguments \
'1:target-name:' \
'-f[Force save even if current target is already saved under another name]'
}
__set-target() {
_arguments \
'1:target-name:__cf_targets' \
'-f[Force target change even if current target is unsaved]'
}
__delete-target() {
_arguments \
'1:target-name:__cf_targets'
}
# ------------------
# ----- end Commands
# ------------------
# -------------------
# ----- 1st Arguments
# -------------------
local -a _1st_arguments
_1st_arguments=(
"login":"Log user in"
"logout":"Log user out"
"passwd":"Change user password"
"target":"Set or view the targeted org or space"
"api":"Set or view target api url"
"auth":"Authenticate user non-interactively"
"apps":"List all apps in the target space"
"app":"Display health and status for app"
"push":"Push a new app or sync changes to an existing app"
"scale":"Change or view the instance count, disk space limit, and memory limit for an app"
"delete":"Delete an app"
"rename":"Rename an app"
"start":"Start an app"
"stop":"Stop an app"
"restart":"Restart an app"
"restage":"Restage an app"
"restart-app-instance":"Terminate the running application Instance at the given index and instantiate a new instance of the application with the same index"
"events":"Show recent app events"
"files":"Print out a list of files in a directory or the contents of a specific file"
"logs":"Tail or show recent logs for an app"
"env":"Show all env variables for an app"
"set-env":"Set an env variable for an app"
"unset-env":"Remove an env variable"
"stacks":"List all stacks"
"stack":"Show information for a stack"
"copy-source":"Make a copy of app source code from one application to another. Unless overridden, the copy-source command will restart the application"
"create-app-manifest":"Create an app manifest for an app that has been pushed successfully"
"marketplace":"List available offerings in the marketplace"
"services":"List all service instances in the target space"
"service":"Show service instance info"
"create-service":"Create a service instance"
"update-service":"Update a service instance"
"delete-service":"Delete a service instance"
"rename-service":"Rename a service instance"
"create-service-key":"Create key for a service instance"
"service-keys":"List keys for a service instance"
"service-key":"Show service key info"
"delete-service-key":"Delete a service key"
"bind-service":"Bind a service instance to an app"
"unbind-service":"Unbind a service instance from an app"
"create-user-provided-service":"Make a user-provided service instance available to cf apps"
"update-user-provided-service":"Update user-provided service instance name value pairs"
"orgs":"List all orgs"
"org":"Show org info"
"create-org":"Create an org"
"delete-org":"Delete an org"
"rename-org":"Rename an org"
"spaces":"List all spaces in an org"
"space":"Show space info"
"create-space":"Create a space"
"delete-space":"Delete a space"
"rename-space":"Rename a space"
"domains":"List domains in the target org"
"create-domain":"Create a domain in an org for later use"
"delete-domain":"Delete a domain"
"create-shared-domain":"Create a domain that can be used by all orgs (admin-only)"
"delete-shared-domain":"Delete a shared domain"
"routes":"List all routes in the current space or the current organization"
"create-route":"Create a url route in a space for later use"
"check-route":"Perform a simple check to determine whether a route currently exists or not"
"map-route":"Add a url route to an app"
"unmap-route":"Remove a url route from an app"
"delete-route":"Delete a route"
"delete-orphaned-routes":"Delete all orphaned routes (e.g.: those that are not mapped to an app)"
"buildpacks":"List all buildpacks"
"create-buildpack":"Create a buildpack"
"update-buildpack":"Update a buildpack"
"rename-buildpack":"Rename a buildpack"
"delete-buildpack":"Delete a buildpack"
"running-environment-variable-group":"Retrieve the contents of the running environment variable group"
"staging-environment-variable-group":"Retrieve the contents of the staging environment variable group"
"set-staging-environment-variable-group":"Pass parameters as JSON to create a staging environment variable group"
"set-running-environment-variable-group":"Pass parameters as JSON to create a running environment variable group"
"feature-flags":"Retrieve list of feature flags with status of each flag-able feature"
"feature-flag":"Retrieve an individual feature flag with status"
"enable-feature-flag":"Enable the use of a feature so that users have access to and can use the feature"
"disable-feature-flag":"Disable the use of a feature so that users have access to and can use the feature"
"curl":"Executes a raw request, content-type set to application/json by default"
"config":"write default values to the config"
"oauth-token":"Retrieve and display the OAuth token for the current session"
"add-plugin-repo":"Add a new plugin repository"
"remove-plugin-repo":"Remove a plugin repository"
"list-plugin-repos":"list all the added plugin repository"
"repo-plugins":"List all available plugins in all added repositories"
"plugins":"list all available plugin commands"
"install-plugin":"Install the plugin defined in command argument"
"uninstall-plugin":"Uninstall the plugin defined in command argument"
"targets":"List all saved targets (requires cf-targets plugin)"
"save-target":"Save the current target under a given name (requires cf-targets plugin)"
"set-target":"Restore a previously saved target (requires cf-targets plugin)"
"delete-target":"Delete a saved target (requires cf-targets plugin)"
)
# -----------------------
# ----- end 1st Arguments
# -----------------------
# ----------
# ----- Main
# ----------
_arguments '*:: :->command'
if (( CURRENT == 1 )); then
_describe -t commands "cf command" _1st_arguments
return
fi
local -a _command_args
case "$words[1]" in
login)
__login ;;
logout)
__logout ;;
passwd)
__passwd ;;
target)
__target ;;
api)
__api ;;
auth)
__auth ;;
apps)
__apps ;;
app)
__app ;;
push)
__push ;;
scale)
__scale ;;
delete)
__delete ;;
rename)
__rename ;;
start)
__start ;;
stop)
__stop ;;
restart)
__restart ;;
restage)
__restage ;;
restart-app-instance)
__restart-app-instance ;;
events)
__events ;;
files)
__files ;;
logs)
__logs ;;
env)
__env ;;
set-env)
__set-env ;;
unset-env)
__unset-env ;;
stacks)
__stacks ;;
stack)
__stack ;;
copy-source)
__copy-source ;;
create-app-manifest)
__create-app-manifest ;;
marketplace)
__marketplace ;;
services)
__services ;;
service)
__service ;;
create-service)
__create-service ;;
update-service)
__update-service ;;
rename-service)
__rename-service ;;
delete-service)
__delete-service ;;
create-service-key)
__create-service-key ;;
service-keys)
__service-keys ;;
service-key)
__service-key ;;
delete-service-key)
__delete-service-key ;;
bind-service)
__bind-service ;;
unbind-service)
__unbind-service ;;
create-user-provided-service)
__create-user-provided-service ;;
update-user-provided-service)
__update-user-provided-service ;;
orgs)
__orgs ;;
org)
__org ;;
create-org)
__create-org ;;
delete-org)
__delete-org ;;
spaces)
__spaces ;;
space)
__space ;;
create-space)
__create-space ;;
delete-space)
__delete-space ;;
domains)
__domains ;;
create-domain)
__create-domain ;;
delete-domain)
__delete-domain ;;
create-shared-domain)
__create-shared-domain ;;
delete-shared-domain)
__delete-shared-domain ;;
routes)
__routes ;;
create-route)
__create-route ;;
check-route)
__check-route ;;
map-route)
__map-route ;;
unmap-route)
__unmap-route ;;
delete-route)
__delete-route ;;
delete-orphaned-routes)
__delete-orphaned-routes ;;
buildpacks)
__buildpacks ;;
create-buildpack)
__create-buildpack ;;
update-buildpack)
__update-buildpack ;;
rename-buildpack)
__rename-buildpack ;;
delete-buildpack)
__delete-buildpack ;;
running-environment-variable-group)
__running-environment-variable-group ;;
staging-environment-variable-group)
__staging-environment-variable-group ;;
set-staging-environment-variable-group)
__set-staging-environment-variable-group ;;
set-running-environment-variable-group)
__set-running-environment-variable-group ;;
feature-flags)
__feature-flags ;;
feature-flag)
__feature-flag ;;
enable-feature-flag)
__enable-feature-flag ;;
disable-feature-flag)
__disable-feature-flag ;;
curl)
__curl ;;
config)
__config ;;
oauth-token)
__oauth-token ;;
add-plugin-repo)
__add-plugin-repo ;;
remove-plugin-repo)
__remove-plugin-repo ;;
list-plugin-repos)
__list-plugin-repos ;;
repo-plugins)
__repo-plugins ;;
plugins)
__plugins ;;
install-plugin)
__install-plugin ;;
uninstall-plugin)
__uninstall-plugin ;;
save-target)
__save-target ;;
set-target)
__set-target ;;
delete-target)
__delete-target ;;
esac

65
src/_chatblade Normal file
View File

@ -0,0 +1,65 @@
#compdef chatblade
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for chatblade 0.7.0 (https://github.com/npiv/chatblade)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Johannes Bittner (https://github.com/johannes87)
#
# ------------------------------------------------------------------------------
_chatblade() {
local -a args
local context state state_descr line
typeset -A opt_args
args+=(
'(- *)'{-h,--help}'[show this help message and exit]'
'(- *)--version[display the chatblade version]'
'--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]:key'
'--openai-base-url[a custom URL to use the openAI against a local or custom model]:key'
'--temperature[temperature (openai setting)]:temperature'
'(-c --chat-gpt)'{-c,--chat-gpt}'[chat GPT model 3.5/4 shorthand or full qualified model name, can also be set via env variable OPENAI_API_MODEL]:chat GPT model:(3.5 4 4o mini o1 o1mini)'
'(-i --interactive)'{-i,--interactive}'[start an interactive chat session. This will implicitly continue the conversation]'
'(-s --stream)'{-s,--stream}'[Stream the incoming text to the terminal]'
'(-t --tokens)'{-t,--tokens}'[display what *would* be sent, how many tokens, and estimated costs]'
'(-p --prompt-file)'{-p,--prompt-file}'[prompt name - will load the prompt with that name at ~/.config/chatblade/name or a path to a file]:prompt file:_files'
'(-e --extract)'{-e,--extract}'[extract content from response if possible (either json or code block)]'
'(-r --raw)'{-r,--raw}'[print session as pure text, dont pretty print or format]'
'(-n --no-format)'{-n,--no-format}'[do not add pretty print formatting to output]'
'(-o --only)'{-o,--only}'[Only display the response, omit query]'
'--theme[Set the theme for syntax highlighting see https://pygments.org/styles/, can also be set with CHATBLADE_THEME]:theme:_values "theme" default emacs friendly manni monokai'
'(-l --last)'{-l,--last}'[alias for -S last, the default session if none is specified]'
'(-S --session)'{-S,--session}'[initiate or continue named session]:session:->sessions'
'--session-list[list sessions]'
'--session-path[show path to session file]'
'--session-dump[dump session to stdout]'
'--session-delete[delete session]'
'--session-rename[rename session]:new session:->sessions'
)
_arguments -s $args
case $state in
(sessions)
local -a sessions
sessions=("${(@f)$(chatblade --session-list)}")
_describe 'session' sessions
;;
esac
}
_chatblade
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

53
src/_chmem Normal file
View File

@ -0,0 +1,53 @@
#compdef chmem
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for chmem, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - configure memory
#
# Author:
# *Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments -s \
'(-b --blocks)'{-b,--blocks}'[Use a BLOCKRANGE parameter instead of RANGE or SIZE]' \
'(-d --disable)'{-d,--disable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory offline]' \
'(-e --enable)'{-e,--enable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory online]' \
'(-z --zone)'{-z,--zone}'[Select the memory ZONE where to set the specified RANGE, SIZE, or BLOCKRANGE of memory online or offline]' \
'(-v --verbose)'{-v,--verbose}'[Verbose mode]' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,6 +1,6 @@
#compdef choc
# ------------------------------------------------------------------------------
# Copyright (c) 2012 Github zsh-users - http://github.com/zsh-users
# Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for choc (http://chocolatapp.com)
# Completion script for choc (https://chocolatapp.com/)
#
# ------------------------------------------------------------------------------
# Authors

211
src/_chromium Normal file
View File

@ -0,0 +1,211 @@
#compdef chromium
# Copyright 2018 CERN for the benefit of the LHCb Collaboration
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of CERN nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
_arguments \
"--user-data-dir=[Specify the directory that user data is kept in]:directory:_path_files -/" \
"--app=[Runs URL in app mode]:url:_urls" \
"--incognito[Open in incognito mode]" \
"--new-window[open in new window]" \
"(--no-proxy-server --proxy-auto-detect --proxy-pac-url --password-store)--proxy-server=[specify proxy server]:[<proxy-scheme>\://]<proxy-host>[\:<proxy-port>]:_chromium_proxyurls" \
"--no-proxy-server[Disables the proxy server]" \
"--proxy-auto-detect[Autodetect proxy configuration]" \
"--proxy-pac-url=[Specify proxy autoconfiguration URL]:proxy autoconfiguration url:_urls" \
"--password-store=[Set the password store to use]:password store: _wanted arguments expl 'wallet store' compadd -- basic gnome kwallet" \
"--version[print version]" \
"*:: :{ _alternative _urls _files }"
# excerpt from the chromium help message:
#
# Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests. This overrides any environment variables or settings picked via the options dialog. An individual proxy server is specified
# using the format:
#
#
#
# Where <proxy-scheme> is the protocol of the proxy server, and is one of:
#
# "http", "socks", "socks4", "socks5".
#
# If the <proxy-scheme> is omitted, it defaults to "http". Also note that "socks" is equivalent to "socks5".
#
# Examples:
#
# --proxy-server="foopy:99"
# Use the HTTP proxy "foopy:99" to load all URLs.
#
# --proxy-server="socks://foobar:1080"
# Use the SOCKS v5 proxy "foobar:1080" to load all URLs.
#
# --proxy-server="socks4://foobar:1080"
# Use the SOCKS v4 proxy "foobar:1080" to load all URLs.
#
# --proxy-server="socks5://foobar:66"
# Use the SOCKS v5 proxy "foobar:66" to load all URLs.
#
# It is also possible to specify a separate proxy server for different URL types, by prefixing the proxy server specifier with a URL specifier:
#
# Example:
#
# --proxy-server="https=proxy1:80;http=socks4://baz:1080"
# Load https://* URLs using the HTTP proxy "proxy1:80". And load http://*
# URLs using the SOCKS v4 proxy "baz:1080".
#
_chromium_proxyurls () {
#TODO: semicolon separated urls not yet implemented
# mostly copied from _urls
local ipre scheme host user uhosts ret=1 expl match glob suf
local localhttp
zstyle -a ":completion:${curcontext}:urls" local localhttp
local localhttp_servername="$localhttp[1]"
local localhttp_documentroot="$localhttp[2]"
local localhttp_userdir="$localhttp[3]"
zstyle -a ":completion:${curcontext}:urls" urls urls
if [[ $#urls -gt 1 || ( $#urls -eq 1 && ! -d $urls[1] ) ]]
then
[[ $#urls -eq 1 && -f $urls[1] ]] && urls=($(< $urls[1]))
_wanted urls expl 'URL' compadd "$@" -a urls && return 0
urls=()
fi
urls="$urls[1]"
glob=(-g '*(^/)')
zparseopts -D -K -E 'g:=glob'
ipre="$IPREFIX"
if ! compset -P '(#b)([-+.a-z0-9]#):'
then
_tags -C argument prefixes
while _tags
do
while _next_label prefixes expl 'URL prefix' -S '' "$@"
do
compset -S '[^:/]*' && compstate[to_end]=''
compadd "$expl[@]" http:// socks:// socks4:// socks5:// && ret=0
done
(( ret )) || return 0
done
return 1
fi
scheme="$match[1]"
case "$scheme" in
(http(|s)|socks(|4|5)) if ! compset -P //
then
_wanted -C "$scheme" prefixes expl 'end of prefix' compadd -S '' "$@" //
return
fi ;;
(file) [[ -prefix //(127.0.0.1|localhost)/ ]] && compset -P '//(127.0.0.1|localhost)'
[[ -prefix /// ]] && compset -P //
if ! compset -P //
then
_tags -C file files
while _tags
do
while _next_label files expl 'local file'
do
if [[ -prefix / ]]
then
_path_files "$expl[@]" -S '' "${glob[@]}" && ret=0
_path_files "$expl[@]" -S/ -r '/' -/ && ret=0
elif [[ -z "$PREFIX" ]]
then
compadd -S '/' -r '/' "$expl[@]" "$@" - "${PWD%/}" && ret=0
fi
done
(( ret )) || return 0
done
return 1
fi ;;
esac
if ! compset -P '(#b)([^:/]#)([:/])'
then
uhosts=($urls/$scheme/$PREFIX*$SUFFIX(/:t))
_tags hosts
while _tags
do
while _next_label hosts expl host
do
compset -S '[:/]*' || suf="/"
(( $#uhosts )) || _hosts -S "$suf" -r '/:' "$expl[@]" && ret=0
[[ "$scheme" = http ]] && uhosts=($uhosts $localhttp_servername)
compadd -S "$suf" -r '/:' "$expl[@]" -a uhosts && ret=0
done
(( ret )) || return 0
done
return 1
fi
host="$match[1]"
[[ $match[2] = ':' ]] && ! compset -P '<->/' && _message -e ports 'port number' && return 0
_tags remote-files files || return 1
if [[ "$localhttp_servername" = "$host" ]]
then
if compset -P \~
then
if ! compset -P '(#b)([^/]#)/'
then
_users -S/ "$@"
return
fi
user="$match[1]"
while _tags
do
while _next_label files expl 'local file'
do
_path_files "$expl[@]" "$@" -W ~$user/$localhttp_userdir "${glob[@]}" && ret=0
_path_files -S/ -r '/' "$expl[@]" -W ~$user/$localhttp_userdir-/ && ret=0
done
(( ret )) || return 0
done
else
while _tags
do
while _next_label files expl 'local file'
do
_path_files "$expl[@]" "$@" -W $localhttp_documentroot "${glob[@]}" && ret=0
_path_files -S/ -r '/' "$expl[@]" -W $localhttp_documentroot -/ && ret=0
done
(( ret )) || return 0
done
fi
else
while _tags
do
(( $#urls )) && while _next_label files expl 'local file'
do
_path_files "$expl[@]" "$@" -W $urls/$scheme/$host "${glob[@]}" && ret=0
_path_files -S/ -r '/' "$expl[@]" -W $urls/$scheme/$host -/ && ret=0
done
[[ $scheme = (scp|sftp) ]] && _requested remote-files && _remote_files -h $host -- ssh && ret=0
(( ret )) || return 0
done
fi
return $ret
}

66
src/_clang-check Normal file
View File

@ -0,0 +1,66 @@
#compdef clang-check
# ------------------------------------------------------------------------------
# Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for clang-check v20.1.2 (https://clang.llvm.org/docs/ClangCheck.html)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_arguments \
'(- *)--help[Display available options]' \
'(- *)--help-hidden[Display available more options]' \
'(- *)--help-list[Display list of available options]' \
'(- *)--help-list-hidden[Display list of more available options]' \
'(- *)--version[Display the version of this program]' \
'--analyze[Run static analysis engine]' \
'--analyzer-output-path=[Write output to file]: :_files' \
'--ast-dump[Build ASTs and then debug dump them]' \
'--ast-dump-filter=[Use with -ast-dump or -ast-print to dump/print only AST declaration nodes having a certain substring]:string' \
'--ast-list[Build ASTs and print the list of declaration node qualified names]' \
'--ast-print[Build ASTs and then pretty-print them]' \
'*--extra-arg=[Additional argument to append to the compiler command line]:arg' \
'*--extra-arg-before=[Additional argument to prepend to the compiler command line]:arg' \
'--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \
'--fixit[Apply fix-it advice to the input source]' \
'-p[Build directory where compile_commands.json is]: :_files -/' \
'--print-all-options[Print all option values after command line parsing]' \
'--print-options[Print non-default options after command line parsing]' \
'--syntax-tree-dump[dump the syntax tree]' \
'--tokens-dump[dump the preprocessed tokens]' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

77
src/_clang-format Normal file
View File

@ -0,0 +1,77 @@
#compdef clang-format
# ------------------------------------------------------------------------------
# Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for clang-format v20.1.2 (https://clang.llvm.org/docs/ClangFormat.html)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
local -a styles=(LLVM GNU Google Chromium Microsoft)
_arguments \
'(- *)--help[Display available options]' \
'(- *)--help-hidden[Display available more options]' \
'(- *)--help-list[Display list of available options]' \
'(- *)--help-list-hidden[Display list of more available options]' \
'--Wclang-format-violations[Warnings about individual formatting changes needed]' \
'--Werror=[If set, changes formatting warnings to errors]' \
'*--Wno-error=[If set, do not error out on the specified warning type]:warn' \
'--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \
'--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \
'(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \
'--dump-config[Dump configuration options to stdout and exit]' \
'--fail-on-incomplete-format[If set, fail with exit code 1 on incomplete format]' \
'--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \
'--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \
'*--files=[Provide a list of files to run clang-format]: :_files' \
'--fno-color-diagnostics[If set, not to print diagnostics in color]' \
'-i[Inplace edit files, if specified]' \
'--length=[Format a range of this length(in bytes)]:bytes' \
'--lines=[format a range of lines]:format' \
'--list-ignored[List ignored files]' \
'--offset=[Format a range starting at this byte offset]' \
'--output-replacements-xml[Output replacements as XML]' \
'--print-all-options[Print all option values after command line parsing]' \
'--print-options[Print non default options after command line parsing]' \
'--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \
'--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \
'--style=[Set coding style]: :'"($styles)" \
'--verbose[If set, show the list of processed files]' \
'(- *)--version[Display the version of this program]' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

83
src/_clang-tidy Normal file
View File

@ -0,0 +1,83 @@
#compdef clang-tidy
# ------------------------------------------------------------------------------
# Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for clang-tidy v15.0.2 (https://clang.llvm.org/extra/clang-tidy/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
local -a styles=(LLVM GNU Google Chromium Microsoft)
_arguments \
'(- *)--help[Display available options]' \
'(- *)--help-hidden[Display available more options]' \
'(- *)--help-list[Display list of available options]' \
'(- *)--help-list-hidden[Display list of more available options]' \
'--allow-no-checks[Allow empty enabled checks]' \
'--checks=[Comma-separated list of globs with optional "-" prefix]:checks' \
'--config=[Specifies a configuration in YAML/JSON format]:conf' \
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
'--dump-config[Dumps configuration in the YAML format to stdout]' \
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
'--exclude-header-filter=[Regular expression of headers to exclude diagnostics from]:filter' \
'--explain-config[For each enabled check explains, where it is enabled]' \
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
'*--extra-arg-before[Additional argument to prepend to the compiler command line]:arg' \
'--fix[Apply suggested fixes]' \
'--fix-errors[Apply suggested fixes even if compilation errors were found]' \
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
'--format-style=[Style for formatting code around applied fixes]: :(none file llvm google webkit mozilla)' \
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
'--line-filter=[List of files with line ranges to filter the warnings]' \
'(- *)--list-checks[List all enabled checks and exit]' \
'--load=[Load the specified plugin]: :_files' \
'-p[Build directory where compile_commands.json is]: :_files -/' \
'--print-all-options[Print all option values after command line parsing]' \
'--print-options[Print non default options after command line parsing]' \
'--quiet[Run clang-tidy in quiet mode]' \
'--store-check-profile=[These per-TU profiles are instead stored as JSON]:prefix' \
'--system-headers[Display the errors from system headers]' \
'--use-color[Use colors in diagnostics]' \
'(- *)--version[Display the version of this program]' \
'--verify-config[Check the config files to ensure each check and option is recognized]' \
'--vfsoverlay=[Overlay the virtual filesystem described by file over the real file system]: :_files' \
'--warnings-as-errors=[Upgrades warning to errors]:check' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

601
src/_cmake Normal file
View File

@ -0,0 +1,601 @@
#compdef cmake -value-,CMAKE_GENERATOR,-default-
# ------------------------------------------------------------------------------
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# -------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for CMake 3.31.0 (https://cmake.org).
#
# -------------------------------------------------------------------------
# Authors
# -------
#
# * Scott M. Kroll <skroll@gmail.com> (initial version)
# * Paul Seyfert <pseyfert.mathphys@gmail.com> (handling of --build and updates)
# * Norbert Lange <nolange79@gmail.com> (presets, command mode, updates)
#
# -------------------------------------------------------------------------
# Notes
# -----
#
# * By default only C and C++ languages are supported for compiler flag
# variables. To define your own list of languages:
#
# cmake_langs=('C' 'C'
# 'CXX' 'C++')
# zstyle ':completion:*:cmake:*' languages $cmake_langs
#
# -------------------------------------------------------------------------
local context state line curcontext="$curcontext" cmake_args
local -a cmake_build_options=(
'-S[Explicitly specify a source directory]:source directory:_path_files -/'
'-B[Explicitly specify a build directory]:build directory:_path_files -/'
'-C[Pre-load a script to populate the cache]:initial cache:_files'
'*-D-[Create a cmake cache entry]:property:_cmake_define_property'
'*-U[Remove matching entries from CMake cache]:globbing expression'
'-G[Specify a makefile generator]:generator:_cmake_generators'
'-T[Specify toolset name if supported by generator]:toolset name'
'-A[Specify platform name if supported by generator]:platform name'
'--toolchain[Specify toolchain file]: :_files'
'--install-prefix[Specify install directory]: :_path_files -/'
# Warnings
'(-Wdev)-Wno-dev[Suppress/Enable developer warnings]'
'(-Wno-dev)-Wdev[Suppress/Enable developer warnings]'
'(-Wdeprecated)-Wno-deprecated[Suppress/Enable deprecation warnings]'
'(-Wno-deprecated)-Wdeprecated[Suppress/Enable deprecation warnings]'
'(-Werror=dev)-Wno-error=dev[Make developer warnings (not) errors]'
'(-Wno-error=dev)-Werror=dev[Make developer warnings (not) errors]'
'(-Wno-error=deprecated)-Werror=deprecated[Make deprecated macro and function warnings (not) errors]'
'(-Werror=deprecated)-Wno-error=deprecated[Make deprecated macro and function warnings (not) errors]'
'--preset=[Specify a configure preset]:preset:_cmake_presets'
'--list-presets[List available presets]'
'--workflow[Run a workflow preset]'
'-E[CMake command mode]:command:_cmake_command_help'
'-L-[List cache variables]::_values "options" "[non-advanced cache variables]" "A[advanced cache variables]" "H[non-advanced cached variables with help]" "AH[advanced cache variables with help]"'
'--fresh[Configure a fresh build tree, removing any existing cache file]'
'--build[Build a CMake-generated project binary tree]:project directory:_path_files -/'
'--install[Install a CMake-generated project binary tree]:project directory:_path_files -/'
'--open[Open generated project in the associated application]:project directory:_path_files -/'
'-N[View mode only]'
'-P[Process script mode]:script:_files'
'--find-package[Legacy pkg-config like mode. Do not use]'
'--graphviz=[Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more]:graphviz output:_files'
'--system-information[Dump information about this system]::system information output:_files'
'--print-config-dir[Print CMake config directory for user-wide FileAPI queries]'
'--log-level=[Set the verbosity of messages from CMake files]:log level:(ERROR WARNING NOTICE STATUS VERBOSE DEBUG TRACE)'
'--log-context[Prepend log messages with context, if given]'
'--debug-trycompile[Do not delete the try_compile build tree. Only useful on one try_compile at a time]'
'--debug-output[Put cmake in a debug mode]'
'--debug-find[Put cmake find in a debug mode]'
'--debug-find-pkg=[Limit cmake debug-find to the comma-separated list of packages]:packages'
'--debug-find-var=[Limit cmake debug-find to the comma-separated list of result variables]:variables'
'(--trace-expand)--trace[Put cmake in trace mode]'
'(--trace)--trace-expand[Put cmake in trace mode with variable expansion]'
'--trace-format=[Set the output format of the trace]:trace format:(human json-v1)'
'*--trace-source[Trace only this CMake file/module. Multiple options allowed]:filename:_files'
'--trace-redirect[Redirect trace output to a file instead of stderr]:trace output:_files'
'--warn-uninitialized[Warn about uninitialized values]'
'--no-warn-unused-cli[Do not warn about command line options]'
'--warn-unused-vars[Warn about unused variables]'
'--check-system-vars[Find problems with variable usage in system files]'
'--compile-no-warning-as-error[Ignore COMPILE_WARNING_AS_ERROR property and CMAKE_COMPILE_WARNING_AS_ERROR variable]'
'--profiling-format[Output data for profiling CMake scripts]:profiling format:(google-trace)'
'--profiling-output[Select an output path for the profiling data]:filename:_files'
':cmake project:_path_files -/'
)
# ------------------------
# _cmake_generator_options
#
# arguments are $1: build working directory (top level Makefile or build.ninja file)
# $2: position of "--" in the command line
# ------------------------
(( $+functions[_cmake_generator_options] )) ||
_cmake_generator_options() {
# pass only the part of the command line starting at "--" to the completion
shift (( $2 - 1 )) words
(( CURRENT = $CURRENT + 1 - $2 ))
if [ -f $1/Makefile ]
then
$_comps[make]
elif [ -f $1/build.ninja ]
then
$_comps[ninja]
fi
}
# --------------
# _cmake_presets
# --------------
(( $+functions[_cmake_presets] )) ||
_cmake_presets() {
local invoke; invoke=(${(Q)words})
invoke[$CURRENT]=()
# TODO: remove all arguments -* except -S
local list_presets; list_presets=(${(f)"$(${invoke} --list-presets 2>/dev/null |
sed -n -e 's,^[[:space:]]*"\([^"]*\)"[[:space:]]*-[[:space:]]*\(.*\),\1:\2,p' \
-e 's,^[[:space:]]*"\([^"]*\)"[[:space:]]*$,\1,p')"})
_describe 'presets' list_presets
}
# --------------
# _cmake_targets
# --------------
(( $+functions[_cmake_targets] )) ||
_cmake_targets() {
local -a targets
if [ -f $1/Makefile ]
then
# `make help` doesn't work for Makefiles in general, but for CMake generated Makefiles it does.
i=1
for target in $(make -f $1/Makefile help | \grep -e "\.\.\." | sed "s/\.\.\. //" | sed "s/ (the default.*//") ; do
targets[$i]=$target
(( i = $i + 1 ))
done
elif [ -f $1/build.ninja ]
then
# `ninja help` doesn't seem to be the list of targets we're interested in
i=1
for target in $(ninja -C $1 -t targets all 2&>/dev/null | awk -F: '{print $1}') ; do
targets[$i]="$target"
(( i++ ))
done
fi
_describe 'build targets' targets
}
_cmake_suggest_builddirs() {
_alternative ':current directory:(.)' 'directory::_directories' && return 0
}
_cmake_suggest_installdirs() {
_alternative ':current directory:(.)' 'directory::_directories' && return 0
}
_cmake_on_build() {
local build_extras;build_extras=(
'--[Native build tool options]'
'--target[specify build target]'
'--clean-first[build target clean first]'
'--config[For multi-configuration tools]'
'--parallel[maximum number of build processes]'
'--use-stderr')
local -a undescribed_build_extras
i=1
for be in $build_extras ; do
undescribed_build_extras[$i]=$(echo $be | sed "s/\[.*//")
(( i++ ))
done
inbuild=false
dashdashposition=-1
for ((i = (($CURRENT - 1)); i > 1 ; i--)); do
if [[ $words[$i] == --build ]] ; then
inbuild=true
buildat=$i
(( difference = $CURRENT - $i ))
elif [[ $words[$i] == -- ]] ; then
dashdashposition=$i
fi
done
# check if build mode has been left
outofbuild=false
for ((i = (($CURRENT - 1)); i > (($buildat + 1)); i--)); do
# don't check the word after --build (should be a directory)
if [[ ${undescribed_build_extras[(r)$words[$i]]} == $words[$i] ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --target ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --config ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --parallel ]] ; then continue ; fi
outofbuild=true
done
if (( $dashdashposition > 0 )) ; then
_cmake_generator_options $words[(($buildat + 1))] $dashdashposition && return 0
fi
if [[ "$inbuild" == false || "$difference" -eq 1 ]] ; then
# either there is no --build or completing the directory after --build
_arguments -C -s \
- build_opts \
"$cmake_build_options[@]" \
- build_cmds \
"$cmake_suggest_build[@]" && return 0
elif [[ $words[(($CURRENT - 1))] == --target ]] ; then
# after --build <dir> --target, suggest targets
_cmake_targets $words[(($buildat + 1))] && return 0
elif [[ $words[(($CURRENT - 1))] == --config ]] ; then
# after --build <dir> --config, no idea
return 0
elif [[ $words[(($CURRENT - 1))] == --parallel ]] ; then
# after --build <dir> --parallel
return 0
elif [ "$outofbuild" = true ] ; then
# after --build <dir> --<not a --build option>, suggest other cmake_build_options (like -Wno-dev)
_arguments "$cmake_build_options[@]" && return 0
else
# after --build <dir>, suggest other cmake_build_options (like -Wno-dev) or --build options (like --clean-first)
_arguments "$build_extras[@]" "$cmake_build_options[@]" && return 0
fi
}
_cmake_on_install() {
local build_extras;build_extras=(
'--[Native build tool options]'
'--prefix[Override the installation prefix, CMAKE_INSTALL_PREFIX]'
'--config[For multi-configuration generators(e.g. Visual Studio)]'
'--component[Component-based install]'
'--strip[Strip before installing.]'
)
local -a undescribed_build_extras
i=1
for be in $build_extras ; do
undescribed_build_extras[$i]=$(echo $be | sed "s/\[.*//")
(( i++ ))
done
inbuild=false
dashdashposition=-1
for ((i = (($CURRENT - 1)); i > 1 ; i--)); do
if [[ $words[$i] == --install ]] ; then
inbuild=true
buildat=$i
(( difference = $CURRENT - $i ))
elif [[ $words[$i] == -- ]] ; then
dashdashposition=$i
fi
done
outofbuild=false
for ((i = (($CURRENT - 1)); i > (($buildat + 1)); i--)); do
# don't check the word after --install (should be a directory)
if [[ ${undescribed_build_extras[(r)$words[$i]]} == $words[$i] ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --prefix ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --config ]] ; then continue ; fi
if [[ $words[(($i - 1))] == --component ]] ; then continue ; fi
outofbuild=true
done
if (( $dashdashposition > 0 )) ; then
_cmake_generator_options $words[(($buildat + 1))] $dashdashposition && return 0
fi
if [[ "$inbuild" == false || "$difference" -eq 1 ]] ; then
# either there is no --install or completing the directory after --install
_arguments -C -s \
- build_opts \
"$cmake_build_options[@]" \
- build_cmds \
"$cmake_suggest_install[@]" && return 0
elif [[ $words[(($CURRENT - 1))] == --prefix ]] ; then
# after --install <dir> --prefix, no idea
return 0
elif [[ $words[(($CURRENT - 1))] == --config ]] ; then
# after --install <dir> --config, no idea
return 0
elif [[ $words[(($CURRENT - 1))] == --component ]] ; then
# after --build <dir> --component, no idea
return 0
elif [ "$outofbuild" = true ] ; then
# after --build <dir> --<not a --build option>, suggest other cmake_build_options (like -Wno-dev)
_arguments "$cmake_build_options[@]" && return 0
else
# after --build <dir>, suggest other cmake_build_options (like -Wno-dev) or --build options (like --clean-first)
_arguments "$build_extras[@]" "$cmake_build_options[@]" && return 0
fi
}
local -a cmake_help_actions=(
'(- 1)'{--help,-help,-usage,-h,-H}'[Print usage information and exit]'
'(- 1)'{--version,-version}'[Print version number and exit]'
'(- 1)--help-full[Print all help manuals and exit]'
'(- 1)--help-manual[Print one help manual and exit]:module-name: _cmake_list_names --help-manual-list "manual name"'
'(- 1)--help-manual-list[List help manuals available and exit]'
'(- 1)--help-command[Print help for one command and exit]:command-name: _cmake_list_names --help-command-list "command name"'
'(- 1)--help-command-list[List commands with help available and exit]'
'(- 1)--help-commands[Print cmake-commands manual and exit]'
'(- 1)--help-module[Print help for one module and exit]:module-name: _cmake_list_names --help-module-list "module name"'
'(- 1)--help-module-list[List modules with help available and exit]'
'(- 1)--help-modules[Print cmake-modules manual and exit]'
'(- 1)--help-policy[Print help for one policy and exit]:policy-name: _cmake_list_names --help-policy-list "policy name"'
'(- 1)--help-policy-list[List policies with help available and exit]'
'(- 1)--help-policies[Print cmake-policies manual and exit]'
'(- 1)--help-property[Print help for one property and exit]:property-name: _cmake_list_names --help-property-list "property name" brakremove'
'(- 1)--help-property-list[List properties with help available and exit]'
'(- 1)--help-properties[Print cmake-properties manual and exit]'
'(- 1)--help-variable[Print help for one variable and exit]:variable-name: _cmake_list_names --help-variable-list "variable name" brakremove'
'(- 1)--help-variable-list[List variables with help available and exit]'
'(- 1)--help-variables[Print cmake-variables manual and exit]'
)
_cmake_help() {
_arguments -C -s - help "$cmake_help_actions[@]"
}
# -----------------
# _cmake_list_names
# -----------------
(( $+functions[_cmake_list_names] )) ||
_cmake_list_names() {
local command; command="$@[1]"
local desc; desc="$@[2]"
local opts; opts=($@[3])
local list_names; list_names=(${(f)"$($service $command 2> /dev/null)"})
# Older CMake (< 3.0) writes out the version
list_names=(${^list_names##cmake version*})
if [[ ${opts[(i)brakremove]} -le ${#opts} ]]; then
list_names=(${^list_names//\[/\\\[})
list_names=(${^list_names//\]/\\\]})
fi
_values ${desc} ${list_names[@]:-1} && return 0
}
# ----------------------
# _cmake_define_property
# ----------------------
(( $+functions[_cmake_define_property] )) ||
_cmake_define_property() {
if compset -P '*='; then
_wanted property-values expl 'property value' _cmake_define_property_values ${${IPREFIX%=}#-D} && return 0
else
_wanted property-names expl 'property name' _cmake_define_property_names -qS= && return 0
fi
}
# ----------------------------
# _cmake_define_property_names
# ----------------------------
(( $+functions[_cmake_define_property_names] )) ||
_cmake_define_property_names() {
local alternatives; alternatives=(
'common-property-names:common property name:_cmake_define_common_property_names -qS='
)
local -A cmake_langs
zstyle -a ":completion:${curcontext}:" languages cmake_langs
[[ $#cmake_langs -eq 0 ]] && cmake_langs=('C' 'C' 'CXX' 'C++')
for cmake_lang in ${(k)cmake_langs}; do
cmake_lang_desc="${cmake_langs[$cmake_lang]}"
alternatives+=("${cmake_lang//:/-}-property-names:${cmake_lang_desc} language property name:_cmake_define_lang_property_names -qS= ${cmake_lang} ${cmake_lang_desc}")
done
_alternative "${alternatives[@]}"
}
# ---------------------------------
# _cmake_define_lang_property_names
# ---------------------------------
(( $+functions[_cmake_define_lang_property_names] )) ||
_cmake_define_lang_property_names() {
local cmake_lang="$@[-2]" cmake_lang_desc="$@[-1]"
local properties; properties=(
"CMAKE_${cmake_lang}_COMPILER:${cmake_lang_desc} compiler"
"CMAKE_${cmake_lang}_COMPILER_LAUNCHER:${cmake_lang_desc} compiler launcher (e.g. ccache)"
"CMAKE_${cmake_lang}_FLAGS:${cmake_lang_desc} compiler flags for all builds"
"CMAKE_${cmake_lang}_FLAGS_DEBUG:${cmake_lang_desc} compiler flags for all Debug build"
"CMAKE_${cmake_lang}_FLAGS_RELEASE:${cmake_lang_desc} compiler flags for all Release build"
"CMAKE_${cmake_lang}_FLAGS_MINSIZREL:${cmake_lang_desc} compiler flags for all MinSizRel build"
"CMAKE_${cmake_lang}_FLAGS_RELWITHDEBINFO:${cmake_lang_desc} compiler flags for all RelWithDebInfo build"
"CMAKE_${cmake_lang}_STANDARD:${cmake_lang_desc} language standard"
"CMAKE_${cmake_lang}_STANDARD_REQUIRED:${cmake_lang_desc} language standard is required"
"CMAKE_${cmake_lang}_EXTENSIONS:${cmake_lang_desc} enable compiler specific extensions"
)
_describe -t "${cmake_lang//:/-}-property-names" "${cmake_lang_desc} property name" properties $@[0,-3] && return 0
}
# -----------------------------------
# _cmake_define_common_property_names
# -----------------------------------
(( $+functions[_cmake_define_common_property_names] )) ||
_cmake_define_common_property_names() {
local properties; properties=(
'CMAKE_MODULE_PATH:Search path for CMake modules (FindPROJECT.cmake)'
'CMAKE_PREFIX_PATH:Search path for installations (PROJECTConfig.cmake)'
'CMAKE_BUILD_TYPE:Specifies the build type for make based generators'
'BUILD_SHARED_LIBS:Global flag to cause add_library() to create shared libraries if on'
'CMAKE_TOOLCHAIN_FILE:Absolute or relative path to a CMake script which sets up toolchain related variables'
'CMAKE_COLOR_MAKEFILE:Enables/disables color output when using the Makefile generator'
'CMAKE_INSTALL_PREFIX:Install directory used by install'
'CMAKE_EXPORT_COMPILE_COMMANDS:Enable/disable output of compilation database during generation'
'CMAKE_RULE_MESSAGES:Specify whether to report a message for each make rule'
'CMAKE_VERBOSE_MAKEFILE:Enable verbose output from Makefile builds'
'CMAKE_UNITY_BUILD:Batch include source files'
)
_describe -t 'common-property-names' 'common property name' properties $@
}
local _cmake_build_types=('Debug' 'Release' 'RelWithDebInfo' 'MinSizeRel')
local _cmake_c_standards=(90 99 11)
local _cmake_cxx_standards=(98 11 14 17 20)
# ----------------------------
# _cmake_define_property_values
# ----------------------------
(( $+functions[_cmake_define_property_values] )) ||
_cmake_define_property_values() {
local ret=1
setopt localoptions extendedglob
case $@[-1] in
(CMAKE_BUILD_TYPE) _wanted build-types expl 'build type' _values 'build type' ${_cmake_build_types[@]} && ret=0;;
(BUILD_SHARED_LIBS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_CXX_STANDARD) _wanted cxx-standards expl 'cxx standard' _values 'cxx standard' ${_cmake_cxx_standards[@]} && ret=0;;
(CMAKE_C_STANDARD) _wanted c-standards expl 'c standard' _values 'c standard' ${_cmake_c_standards[@]} && ret=0;;
(CMAKE_TOOLCHAIN_FILE) _wanted toolchain-files expl 'file' _cmake_toolchain_files && ret=0;;
(CMAKE_COLOR_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_RULE_MESSAGES) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_VERBOSE_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_UNITY_BUILD) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_INSTALL_PREFIX) _files -/ && ret=0;;
(CMAKE_EXPORT_COMPILE_COMMANDS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_*_COMPILER) _wanted compilers expl 'compiler' _cmake_compilers && ret=0;;
(CMAKE_*_COMPILER_LAUNCHER) _wanted compilers expl 'compiler launcher' _cmake_launchers && ret=0;;
(CMAKE_*_FLAGS(|_?*)) _message -e compiler-flags 'compiler flags' && _dispatch $service -value-,CPPFLAGS,-default- && ret=0;;
(CMAKE_*_STANDARD_REQUIRED) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(CMAKE_*_EXTENSIONS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
(*) _files && ret=0;;
esac
return ret
}
local -a _cmake_generator_list=(${(f)"$(cmake --help | awk '/^Generators/{flag=1} flag && /^[* ] [^ ]/ {sub(/^[* ] /, ""); sub(/=.*$/, ""); sub(/\[arch\]/, ""); sub(/ *$/, ""); print}')"})
# -----------------
# _cmake_generators
# -----------------
(( $+functions[_cmake_generators] )) ||
_cmake_generators() {
_describe -t generators 'generator' _cmake_generator_list
}
# ----------------------
# _cmake_toolchain_files
# ----------------------
(( $+functions[_cmake_toolchain_files] )) ||
_cmake_toolchain_files() {
_files -g '*\.cmake*'
}
(( $+functions[_cmake_booleans] )) ||
_cmake_booleans() {
_values booleans 'YES' 'NO'
}
# ---------------
# _cmake_compilers
#
# by default just executable commands, but can be overridden by users.
# ---------------
(( $+functions[_cmake_compilers] )) ||
_cmake_compilers() {
_command_names -e
}
# ---------------
# _cmake_launchers
#
# by default just executable commands, but can be overridden by users.
# useful commands might be ccache, distcc, ...
# ---------------
(( $+functions[_cmake_launchers] )) ||
_cmake_launchers() {
_command_names -e
}
local -a _cmake_commands=(
'capabilities:Report capabilities built into cmake in JSON format' \
'cat:concat the files and print them to the standard output' \
'chdir:run command in a given directory' \
'compare_files:check if file1 is same as file2' \
'copy:copy files to destination (either file or directory)' \
'copy_directory:copy content of <dir>... directories to destination directory' \
'copy_if_different:copy files if it has changed' \
'echo:displays arguments as text' \
'echo_append:displays arguments as text but no new line' \
'env:run command in a modified environment' \
'environment:display the current environment' \
'make_directory:create parent and <dir> directories' \
'md5sum:create MD5 checksum of files' \
'sha1sum:create SHA1 checksum of files' \
'sha224sum:create SHA224 checksum of files' \
'sha256sum:create SHA256 checksum of files' \
'sha384sum:create SHA384 checksum of files' \
'sha512sum:create SHA512 checksum of files' \
'remove:remove the file(s), use -f to force it' \
'remove_directory:remove directories and their contents' \
'rename:rename a file or directory (on one volume)' \
'rm:remove files or directories' \
'server:start cmake in server mode' \
'sleep:sleep for given number of seconds' \
'tar:create or extract a tar or zip archive' \
'time:run command and display elapsed time' \
'touch:touch a <file>' \
'touch_nocreate:touch a <file> but do not create it' \
'create_symlink:create a symbolic link new -> old' \
'create_hardlink:create a hard link new -> old' \
'true:do nothing with an exit code of 0' \
'false:do nothing with an exit code of 1'
)
_cmake_command() {
_arguments -C \
'-E[CMake command mode]:command:(("${_cmake_commands[@]}"))'
}
local cmake_suggest_build;cmake_suggest_build=(
'--build[build]:build dir:_cmake_suggest_builddirs'
)
local cmake_suggest_install;cmake_suggest_install=(
'--install[install]:install dir:_cmake_suggest_installdirs'
)
if [[ "$service" = -value-*CMAKE_GENERATOR* ]]; then
_cmake_generators
elif [ $CURRENT -eq 2 ] ; then
_arguments -C -s \
- help \
"$cmake_help_actions[@]" \
- command \
'-E[CMake command mode]:command:( )' \
- build_opts \
"$cmake_build_options[@]" \
- build_cmds \
"$cmake_suggest_build[@]" \
- install_cmds \
"$cmake_suggest_install[@]" && return 0
elif [[ $words[2] = --help* ]] ; then
_cmake_help
elif [[ $words[2] == --build ]] ; then
_cmake_on_build
elif [[ $words[2] == --install ]] ; then
_cmake_on_install
elif [[ $words[2] == -E ]]; then
_cmake_command
else
_arguments "$cmake_build_options[@]"
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,6 +1,6 @@
#compdef coffee
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -28,35 +28,40 @@
# Description
# -----------
#
# Completion script for Coffee.js v0.6.11 (http://coffeejs.org)
# Completion script for Coffee.js v2.7.0 (https://coffeescript.org/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Mario Fernandez (https://github.com/sirech)
# * Dong Weiming (https://github.com/dongweiming)
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_arguments -C \
'(- *)'{-h,--help}'[display this help message]' \
'(- *)'{-v,--version}'[display the version number]' \
_arguments -s -S \
'--ast[generate an abstract syntax tree of nodes]' \
'(-b --bare)'{-b,--bare}'[compile without a top-level function wrapper]' \
'(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \
'(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \
'(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]:Destination JS file:_files -g "*.js"' \
'(-l --lint)'{-l,--lint}'[pipe the compiled JavaScript through JavaScript Lint]' \
'(--nodejs)--nodejs[pass options directly to the "node" binary]' \
'(-c --compile)'{-c,--compile}'[compile to JavaScript and save as .js files]' \
'(-o --output)'{-o,--output}'[set the output directory for compiled JavaScript]:Output Directory:_files -/' \
'(-n -t -p)'{-n,--nodes}'[print out the parse tree that the parser produces]' \
'(-n -t -p)'{-p,--print}'[print out the compiled JavaScript]' \
'(-n -t -p)'{-t,--tokens}'[print out the tokens that the lexer/rewriter produce]' \
'(-r --require)'{-r,--require}'[require a library before executing your script]:library' \
'(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \
'(- *)'{-h,--help}'[display this help message]' \
'(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \
'(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]: :_files -g "*.coffee"' \
'(-l --literate)'{-l,--literate}'[treat stdio as literate style coffeescript]' \
'(-m --map)'{-m,--map}'[generate source map and save as .js.map files]' \
'(-M --inline-map)'{-M,--inline-map}'[generate source map and include it directly in output]' \
'(-n --nodes)'{-n,--nodes}'[print out the parse tree that the parser produces]' \
'--nodejs[pass options directly to the "node" binary]' \
'(-o --output)'{-o,--output}'[set the output directory for compiled JavaScript]: :_files' \
'(-p --print --tokens)'{-p,--print}'[print out the compiled JavaScript]' \
'(-r --require)'\*{-r,--require}'[require the given module before eval or REPL]:module' \
'(-s --stdio)'{-s,--stdio}'[listen for and compile scripts over stdio]' \
'(-t --transpile)'{-t,--transpile}'[pipe generated JavaScript through Babel]' \
'(-p --print --tokens)--tokens[print out the tokens that the lexer/rewriter produce]' \
'(- *)'{-v,--version}'[display the version number]' \
'(-w --watch)'{-w,--watch}'[watch scripts for changes and rerun commands]' \
'*:script or directory:_files' && ret=0

766
src/_conan Normal file
View File

@ -0,0 +1,766 @@
#compdef conan
# ------------------------------------------------------------------------------
# Copyright (c) 2010-2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for conan 2.0.0 (https://conan.io).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
# * Shohei Yoshida <https://github.com/syohex>
#
# ------------------------------------------------------------------------------
_conan_common_options=(
'(- *)'{-h,--help}'[show help message and exit]'
'-v[verbose output]'
'-vquiet[verbose level quiet]'
'-verror[verbose level error]'
'-vwarning[verbose level warning]'
'-vnotice[verbose level notice]'
'-vstatus[verbose level status]'
'-vverbose[verbose level verbose]'
'-vv[more verbose output]'
'-vdebug[verbose level debug]'
'-vvv[more and more verbose output]'
'-vtrace[verbose level trace]'
'--logger[show the output with log format, with time, type and message]'
)
_conan_package_options=(
'--name[Provide a package name if not specified in conanfile]:name'
'--version[Provide a package version if not specified in conanfile]:version'
'--user[Provide a user]:user'
'--channel[Provide a channel]:channel'
'--requires[directly provide requires instead of a conan file]:requires'
'--tool-requires[directly provide tool-requires instead of a conanfile]:tool_requires'
)
_conan_define_options=(
\*{-o,--options,'-o\:h','--options\:host'}'[define options of host machine]:option'
\*{'-o\:b','--options\:build'}'[define options of build machine]:option'
)
_conan_profile_options=(
'(-pr --profile -pr\:h --profile\:host)'{-pr,--profile,-pr:h,--profile:host}'[apply the specified profile to the host machine]: :_conan_profiles'
'(-pr\:b --profile\:build)'{-pr:b,--profile:build}'[apply the specified profile to the build machine]: :_conan_profiles'
)
_conan_setting_options=(
\*{-s,--settings,'-s\:h','--settings\:host'}'[overwrite the defaults of host machine to build]:setting'
\*{'-s\:b','--settings\:build'}'[overwrite the defaults of build machine to build]:setting'
)
_conan_configuration_options=(
\*{-c,--conf,'-c\:h','--conf\:host'}'[overwrite the defaults of host machine to configure]:config'
\*{'-c\:b','--conf\:build'}'[overwrite the defaults of build machine to configure]:config'
)
_conan_lockfile_options=(
'(-l --lockfile)'{-l,--lockfile}'[path to a lockfile]: :_files'
'--lockfile-partial[do not raise an error if some dependency is not found in lockfile]'
'--lockfile-out[filename of the updated lockfile]: :_files'
'--lockfile-packages[lock package-id and package-revision information]'
'--lockfile-clean[remove unused entries from the lockfile]'
)
_conan_remote_options=(
'(-r --remote -nr --no-remote)'{-r,--remote}'[look in the specified remote server]:remote'
'(-r --remote -nr --no-remote)'{-nr,--no-remote}'[do not use remote, resolve exclusively in the cache]'
)
_conan() {
local context state state_descr line
typeset -A opt_args
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'(- : *)'{-v,--version}'[display version information]' \
'(-h --help)1: :_conan_commands' \
'(-h --help)*:: :->command_args'
case $state in
command_args)
(( $+functions[_conan_${words[1]}] )) && _conan_${words[1]}
;;
esac
}
(( $+functions[_conan_commands] )) ||
_conan_commands() {
local -a commands=(
# consumer commands
'cache:perform file operations in the local cache'
'config:manages conan configuration information'
'graph:obtain information about the dependency graph without fetching binaries'
'inspect:inspect a conanfile.py to return its public fields'
'install:installs the requirements specified in a "conanfile.py" or "conanfile.txt"'
'list:list recipes, revisions or packages in the cache or the remotes'
'lock:create or manage lockfiles'
'profile:manage profiles'
'remote:manage the remote list and the users authenticated on them'
'remove:remove recipes or packages from local cache or a remote'
'search:search for package recipes in all the remotes or a remote'
# create commands
'build:install dependencies and call the build() method'
'create:create a package'
'download:download(without installing) a single conan package from a remote server'
'editable:allow working with a package that resides in user folder'
'export:export a recipe to the Conan package cache'
'export-pkg:create a package directly from pre-compiled binaries'
'new:create a new example recipe and source files from a template'
'source:call the source() method'
'test:test a package from a test_package folder'
'upload:upload packages to a remote'
)
_describe -t 'subcommands' 'subcommands' commands
}
(( $+functions[_conan_cache] )) ||
_conan_cache() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[show help message and exit]' \
'1: :(clean path)' \
'*:: :->args'
case $state in
(args)
local -a opts=($_conan_common_options[@])
case $words[1] in
(clean)
opts+=(
'(-s --source)'{-s,--source}'[clean source folders]'
'(-b --build)'{-b,--build}'[clean build folders]'
'(-d --download)'{-d,--download}'[clean download folders]'
\*{-p,--package-query}'[remove only the packages matching a specific query]:query'
'1:pattern'
)
;;
(path)
opts+=(
'--folder[path to show]::type:(export_source source build)' \
'1:recipe_or_package_reference:_files'
)
;;
esac
_arguments "$opts[@]"
;;
esac
return $ret
}
(( $+functions[_conan_config] )) ||
_conan_config() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_config_commands' \
'*:: :->args'
case $state in
(args)
local -a opts=($_conan_common_options[@])
case $words[1] in
(install)
opts+=(
'--verify-ssl[Verify SSL connection when downloading file]: :(True False)'
'(-t --type)'{-t,--type}'[Type of remote config]: :(git dir file url)'
\*{-a,--args}'[String with extra arguments for "git clone"]:arg'
\*{-sf,--source-folder}'[Install files only from a source subfolder from specified origin]: :_files -/'
'(-tf --target-folder)'{-tf,--target-folder}'[Install to that path in the conan cache]: :_files -/'
)
;;
(list)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
)
;;
esac
_arguments "$opts[@]"
;;
esac
}
(( $+functions[_conan_config_commands] )) ||
_conan_config_commands() {
local -a commands=(
'home:show the Conan home folder'
'install:install the configuration into the Conan home folder'
'list:show all the Conan available configurations:'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_graph] )) ||
_conan_graph() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_graph_commands' \
'*:: :->args'
local -a common_opts=(
$_conan_package_options[@]
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
)
case $state in
(args)
local -a opts=($_conan_common_options[@])
case $words[1] in
(build-order)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
$common_opts[@]
)
;;
(build-order-merge)
opts+=(
'--file[files to be merged]:file:_files'
)
;;
(info)
opts+=(
$common_opts[@]
'(-f --format)'{-f,--format}'[select the output format]:format:(html json dot)'
'--check-updates[check if there are recipe updates]'
'*--filter[show only the specified fields]:filter'
'*--package-filter[print information only for packages that match the patterns]:package_filter'
'--deploy[deploy using the provided deployer to the output folder]:deployer'
)
;;
esac
_arguments "$opts[@]"
;;
esac
}
(( $+functions[_conan_graph_commands] )) ||
_conan_graph_commands() {
local -a commands=(
'build-order:compute the build order of a dependency graph'
'build-order-merge:merge more than 1 build-order file'
'info:compute the dependency graph and shows information about it'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_inspect] )) ||
_conan_inspect() {
_arguments \
"$_conan_common_options[@]" \
'(-f --format)'{-f,--format}'[select the output format]:format:(json)' \
'*:recipe_folder:_files -/'
}
(( $+functions[_conan_install] )) ||
_conan_install() {
local -a generators=(
cmake cmake_multi cmake_paths cmake_find_package cmake_find_package_multi
msbuild visual_studio visual_studio_multi visual_studio_legacy xcode compiler_args gcc
boost-build b2 qbs qmake scons pkg_config virtualenv virtualenv_python virtualbuildenv
virtualrunenv youcompleteme txt json premake make markdown deploy
)
local -a opts=(
$_conan_common_options[@]
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
'(-g --generator)'{-g,--generator}"[generators to use]:generator:($generators)"
'(-of --output)'{-of,--output-folder}'[the root output folder for generated and build files]:dir:_files -/'
'--deploy[deploy using the provided deployer to the output folder]:deployer'
'1:recipe_dir_or_conanfile:_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_list] )) ||
_conan_list() {
local -a opts=(
$_conan_common_options[@]
'(-f --format)'{-f,--format}'[select the output format]:format:(json html)'
\*{-p,--package-query}'[remove only the packages matching a specific query]:query'
'(-r --remote)'{-r,--remote}'[remote names]:remote'
'(-c --cache)'{-c,--cache}'[search in the local cache]'
'1:recipe_or_package_reference:_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_lock] )) ||
_conan_lock() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_lock_commands' \
'*:: :->args'
case $state in
(args)
local -a opts=($_conan_common_options)
case $words[1] in
(add)
opts+=(
'*--requires[add references to lockfile]:requires'
'*--build-requires[add build-requires to lockfile]:build_requires'
'*--python-requires[add python-requires to lockfile]'
'--lockfile-out[file name of the created lockfile]:filename:_files'
'--lockfile[file name of the input lockfile]:filename:_files'
)
;;
(create)
opts+=(
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
'1: :_files'
)
;;
(merge)
opts+=(
'--lockfile-out[file name of the created lockfile]:filename:_files'
'--lockfile[file name of the input lockfile]:filename:_files'
)
;;
esac
_arguments "$opts[@]"
;;
esac
}
(( $+functions[_conan_lock_commands] )) ||
_conan_lock_commands() {
local -a commands=(
'add:add requires, build-requires or python requires to an existing or new lockfile'
'create:create a lockfile from a conanfile or a reference'
'merge:merge 2 or more lockfiles'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_profile] )) ||
_conan_profile() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_profile_commands' \
'*:: :->args'
case $state in
(args)
local opts=($_conan_common_options[@])
case $words[1] in
(detect)
opts+=(
'--name[profile name, "default" if not specified]::name'
'(-f --force)'{-f,--force}'[overwrite if exists]'
)
;;
(list)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
)
;;
(path|show)
opts+=(
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
)
;;
esac
_arguments "$opts[@]"
;;
esac
}
(( $+functions[_conan_profile_commands] )) ||
_conan_profile_commands() {
local -a commands=(
'detect:generate a profile using auto-detected values'
'list:list all profiles in the cache'
'path:show profile path location'
'show:show aggregated profiles from the passed arguments'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_remote] )) ||
_conan_remote() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_remote_commands' \
'*:: :->args'
case $state in
(args)
local -a opts=($_conan_common_options[@])
case $words[1] in
(add)
opts+=(
'--insecure[allow insecure server connections when using SSL]'
'--index[insert the remote at a specific position in the remote list]:index'
'(-f --force)'{-f,--force}'[force the definition of the remote even if duplicated]'
'1:name'
'2:url'
)
;;
(auth)
opts+=(
'--with-user[only try to auth in those remotes that already have a user name]'
'1:remote:_conan_remotes'
)
;;
(list|list-users)
opts+=('(-f --format)'{-f,--format}'[select the output format]:format:(json)')
;;
(login)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
'(-p --password)'{-p,--password}'[user password]:password'
'1:remote:_conan_remotes'
'2:username:'
)
;;
(logout)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
'1:remote:_conan_remotes'
)
;;
(remove)
opts+=('1:remote:_conan_remotes')
;;
(rename)
opts+=(
'1:remote:_conan_remotes'
'2:new_name'
)
;;
(set-user)
opts+=(
'(-f --format)'{-f,--format}'[select the output format]:format:(json)'
'1:remote:_conan_remotes'
'2:user_name'
)
;;
(update)
opts+=(
'--url[new url for the remote]'
'--secure[do not allow insecure server connections when using SSL]'
'--insecure[allow insecure server connections when using SSL]'
'--index[insert the remote at a specific position in the remote list]:index'
'1:remote:_conan_remotes'
)
;;
esac
;;
esac
}
(( $+functions[_conan_remote_commands] )) ||
_conan_remote_commands() {
local -a commands=(
'add:add a remote'
'auth:authenticate in the defined remotes'
'disable:disable all the remotes matching a pattern'
'enable:enable all the remotes matching a pattern'
'list:list current remotes'
'list-users:list the users logged into all the remotes'
'login:login into the specified remotes matching a pattern'
'logout:clear the existing credentials for the specified remotes matching a pattern'
'remove:remove a remote'
'rename:rename a remote'
'set-user:associate a username with a remote matching pattern without performing the authentication'
'update:update a remote'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_remove] )) ||
_conan_remove() {
local -a opts=(
$_conan_common_options[@]
'(-c --confirm)'{-c,--confirm}'[remove without requesting a confirmation]'
\*{-p,--package-query}'[remove only the packages matching a specific query]:query'
\*{-r,--remote}'[will remove from the specified remote]:remote'
'*:recipe_or_package_reference:_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_search] )) ||
_conan_search() {
local -a opts=(
$_conan_common_options[@]
\*{-r,--remote}'[will remove from the specified remote]:remote'
'*:recipe_reference:_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_build] )) ||
_conan_build() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
'*: :_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_create] )) ||
_conan_create() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
'--build-require[whether the provided reference is a build-require]'
'(-tf --test-folder)'{-tf,--test-folder}'[alternative test folder name]:folder:_files -/'
'*: :_files -/'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_download] )) ||
_conan_download() {
local -a opts=(
$_conan_common_options[@]
'--only-recipe[download only the recipe, not the binary packages]'
\*{-p,--package-query}'[only download packages matching a specific query]:query'
'(-r --remote)'{-r,--remote}'[download from the specific remote]:remote:_conan_remotes'
'*:recipe_or_package_reference:_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_editable] )) ||
_conan_editable() {
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'1: :_conan_editable_commands' \
'*:: :->args'
case $state in
(args)
local opts=($_conan_common_options[@])
case $words[1] in
(add)
opts+=(
$_conan_package_options[@]
'(-of --output-folder)'{-of,--output-folder}'[the root output folder]:folder:_files -/'
)
;;
(list)
opts+=('(-f --format)'{-f,--format}'[select the output format]:format:(json)')
;;
(remove)
opts+=('(-r --refs)'{-r,--refs}'[directly provide reference patterns]:refs')
;;
esac
_arguments "$opts[@]"
;;
esac
}
(( $+functions[_conan_editable_commands] )) ||
_conan_editable_commands() {
local -a commands=(
'add:define the given path location as the package reference'
'list:list all the packages in editable mode'
'remove:remove the editable mode for this reference'
)
_describe -t 'commands' "command" commands
}
(( $+functions[_conan_export] )) ||
_conan_export() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
$_conan_remote_options[@]
$_conan_lockfile_options[@]
'--build-require[whether the provided reference is a build-require]'
'*: :_files -/'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_export-pkg] )) ||
_conan_export-pkg() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
$_conan_remote_options[@]
$_conan_lockfile_options[@]
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
'*: :_files -/'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_new] )) ||
_conan_new() {
local -a templates=(
basic cmake_lib cmake_exe meson_lib meson_exe msbuild_lib msbuild_exe
bezel_lib bezel_exe autotools_lib autotools_exe
)
local -a opts=(
$_conan_common_options[@]
\*{-d,--define}'[define a template argument as key=value]:key_value'
'(-f --force)'{-f,--force}'[overwrite file if it already exists]'
"1:template:($templates)"
)
_arguments "$opts[@]"
}
(( $+functions[_conan_source] )) ||
_conan_source() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
'1: :_files'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_test] )) ||
_conan_test() {
local -a opts=(
$_conan_common_options[@]
$_conan_package_options[@]
\*{-b,--build}'[optional, specify which packages to build from source]:build'
$_conan_remote_options[@]
'(-u --update)'{-u,--update}'[will check the remote and in case a newer version]'
$_conan_define_options[@]
$_conan_profile_options[@]
$_conan_setting_options[@]
$_conan_configuration_options[@]
$_conan_lockfile_options[@]
'1:path:_files -/'
'2:reference'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_upload] )) ||
_conan_upload() {
local -a opts=(
$_conan_common_options[@]
\*{-p,--package-query}'[only upload packages matching a specific query]:query'
'(-r --remote)'{-r,--remote}'[upload to this specific remote]:remote:_conan_remotes'
'--only-recipe[upload only the recipe, not the binary packages]'
'--force[force the upload of the artifacts]'
'--check[perform an integrity check before upload]'
'(-c --confirm)'{-c,--confirm}'[upload all matching recipes without confirmation]'
'1::reference'
)
_arguments "$opts[@]"
}
(( $+functions[_conan_remotes] )) ||
_conan_remotes() {
local -a remotes=(${(f)"$(_call_program remotes $service remote list)"})
_describe -t remotes 'remote' remotes "$@"
}
(( $+functions[_conan_profiles] )) ||
_conan_profiles() {
local -a profiles=(${(f)"$(_call_program profiles $service profile list 2>/dev/null)"})
_describe -t profiles 'profile' profiles "$@"
}
_conan "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

1517
src/_concourse Normal file

File diff suppressed because it is too large Load Diff

72
src/_console Normal file
View File

@ -0,0 +1,72 @@
#compdef console
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for symfony console (https://github.com/symfony/Console).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * loranger (https://github.com/loranger)
# * Yohan Tamb<6D>«² (https://github.com/Cronos87)
#
# ------------------------------------------------------------------------------
_console_find_console() {
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
}
_console_get_command_list() {
IFS=" "
`_console_find_console` --no-ansi | \
sed "1,/Available commands/d" | \
awk '/ [a-z]+/ { print $0 }' | \
sed -E 's/^[ ]+//g' | \
sed -E 's/[:]+/\\:/g' | \
sed -E 's/[ ]{2,}/\:/g'
}
_console() {
local -a commands
IFS=$'\n'
commands=(`_console_get_command_list`)
_describe 'commands' commands
}
compdef _console php console
compdef _console console
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,81 +0,0 @@
#compdef cpanm
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for cpanm (http://search.cpan.org/dist/App-cpanminus/lib/App/cpanminus.pm).
#
# Source: https://github.com/rshhh/cpanminus/blob/master/etc/_cpanm
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Ryushi (https://github.com/rshhh)
#
# ------------------------------------------------------------------------------
local arguments curcontext="$curcontext"
typeset -A opt_args
arguments=(
# Commands
# '(--install -i)'{--install,-i}'[Installs the modules]'
'(- :)--self-upgrade[Upgrades itself]'
'(- :)--info[Displays distribution info on CPAN]'
'(--installdeps)--installdeps[Only install dependencies]'
'(--look)--look[Download/unpack the distribution and then open the directory with your shell]'
'(- :)'{--help,-h}'[Displays help information]'
'(- :)'{--version,-V}'[Displays software version]'
# Options
{--force,-f}'[Force install]'
{--notest,-n}'[Do not run unit tests]'
{--sudo,-S}'[sudo to run install commands]'
'(-v --verbose --quiet -q)'{--verbose,-v}'[Turns on chatty output]'
'(-q --quiet --verbose -v)'{--quiet,-q}'[Turns off all output]'
{--local-lib,-l}'[Specify the install base to install modules]'
{--local-lib-contained,-L}'[Specify the install base to install all non-core modules]'
'--mirror[Specify the base URL for the mirror (e.g. http://cpan.cpantesters.org/)]:URLs:_urls'
'--mirror-only[Use the mirror\''s index file instead of the CPAN Meta DB]'
'--prompt[Prompt when configure/build/test fails]'
'--reinstall[Reinstall the distribution even if you already have the latest version installed]'
'--interactive[Turn on interactive configure]'
'--scandeps[Scan the depencencies of given modules and output the tree in a text format]'
'--format[Specify what format to display the scanned dependency tree]:scandeps format:(tree json yaml dists)'
'--save-dists[Specify the optional directory path to copy downloaded tarballs]'
# '--uninst-shadows[Uninstalls the shadow files of the distribution that you\''re installing]'
'--auto-cleanup[Number of days that cpanm\''s work directories expire in. Defaults to 7]'
'(--no-man-pages)--man-pages[Generates man pages for executables (man1) and libraries (man3)]'
'(--man-pages)--no-man-pages[Do not generate man pages]'
# Note: Normally with "--lwp", "--wget" and "--curl" options set to true (which is the default) cpanm tries LWP,
# Wget, cURL and HTTP::Tiny (in that order) and uses the first one available.
# (So that the exclusions are not enabled here for the completion)
'(--lwp)--lwp[Use LWP module to download stuff]'
'(--wget)--wget[Use GNU Wget (if available) to download stuff]'
'(--curl)--curl[Use cURL (if available) to download stuff]'
# Other completions
'*:Local directory or archive:_files -/ -g "*.(tar.gz|tgz|tar.bz2|zip)(-.)"'
# '*::args: _normal' # this looks for default files (any files)
)
_arguments -s $arguments \
&& return 0
return 1
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

130
src/_cppcheck Normal file
View File

@ -0,0 +1,130 @@
#compdef cppcheck
# ------------------------------------------------------------------------------
# Copyright (c) 2019 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for cppcheck -- a tool for static C/C++ code analysis (https://cppcheck.sourceforge.io/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Georgy Komarov (https://github.com/jubnzv)
#
# ------------------------------------------------------------------------------
# Notes
# -----
#
# Created for Cppcheck version 2.17.1 (https://github.com/danmar/cppcheck)
#
# ------------------------------------------------------------------------------
_cppcheck_files() {
_path_files -/ -g "*.(c|cpp|cxx|h|hpp|C)"
}
_cppcheck() {
local check_ids='(all warning style performance portability information unusedFunction missingInclude)'
local platforms='(unix32 unix64 win32A win32W win64 avr8 elbrus-e1cp pic8 pic8-enhanced pic16 mips32 native unspecified)'
local coding_standards='(normal autosar cert-c-2016 cert-cpp-2016 misra-c-2012 misra-c-2023 misra-cpp-2008 misra-cpp-2023)'
_arguments \
"--addon=[Execute addon]" \
"--addon-python=[Specify the python interpreter]: :_files" \
"--cppcheck-build-dir=[Analysis output directory]:directory:_files -/" \
"--check-config[Check cppcheck configuration]" \
"--check-level=[Configure how much valueflow analysis you want]:level:(reduced normal exhaustive)" \
"--check-library[Show information when library files have incomplete info]" \
"--checkers-report=[Write a report of all the active checkers to the given file]:file:_files" \
"--clang=[Use clang parser instead of the builtin Cppcheck parser]: :_files" \
"--config-exclude=[Path to be excluded from configuration checking]:directory:_files -/" \
"--config-exclude-files=[A file that contains a list of config-excludes]:file:_files" \
"--doc[Print a list of all available checks]" \
"*--disable=[Disable individual checks]:id:$check_ids" \
"--dump[Dump xml data for each translation unit]" \
"-D[Define preprocessor symbol]" \
"-U[Undefine preprocessor symbol]" \
"-E[Print preprocessor output on stdout and don't do any further processing]" \
"--enable=[Enable additional checks]:id:$check_ids" \
"--error-exitcode=[Integer to return if errors are found]" \
"--errorlist[Print a list of all the error messages in XML format]" \
"--exitcode-suppressions=[Used when certain messages should be displayed but should not cause a non-zero exitcode]:_files" \
"*--file-filter=[Analyze only those files matching the given filter str]:filter" \
"--file-list=[Specify the files to check in a text file]:_files" \
"(-f --force)"{-f,--force}"[Force checking of all configurations in files]" \
"(--fsigned-char --funsigned-char)--fsigned-char[Treat char type as signed]" \
"(--fsigned-char --funsigned-char)--funsigned-char[Treat char type as unsigned]" \
"(- 1 *)"{-h,--help}"[Print this help]" \
"-I[A file that contains a list of config-excludes]:directory:_files -/" \
"--include-file=[Specify directory paths to search for included header files in a text file]:file:_files" \
"--include=[Force inclusion of a file before the checked file]:file:_files" \
"-i[Give a source file or source file directory to exclude from the check]:directory or file:_files" \
"--inconclusive[Report even though the analysis is inconclusive]" \
"--inline-suppr[Enable inline suppressions]" \
"-j[Number of threads to do the checking simultaneously]::num" \
"-l[No new threads should be started if the load average is exceeds this value]::load_avg" \
{-x,--language=}"[Forces cppcheck to check all files as the given language]:language:(c c++)" \
"--library=[Load config file that contains information about types and functions]:config:_files" \
"--max-configs=[Maximum number of configurations to check in a file]" \
"--max-ctu-depth=[Maximum depth in whole program analysis]:num" \
"--output-file=[File to save results]:file:_files" \
"--output-format=[Specify the output format]:format:(text sarif xml)" \
"--platform=[Specified platform specific types and sizes]:platform:$platforms" \
"--plist-output=[Generate Clang-plist output files in folder]:_files" \
"--project=[Run Cppcheck on project]:file:_files" \
"--project-configuration=[Limit the configuration cppcheck should check]:configuration" \
"--platform=[Set platform specific types and sizes]:platforms:(unix32 unix64 win32A win32W win64 avr8 elbrus-e1cp pic8 pic8-enhanced pic16 mips32 native unspecified)" \
"(-q --quiet)"{-q,--quiet}"[Do not show progress reports]" \
{-rp,--relative-paths}"=[Use relative paths in output (separated with ;)]:_files" \
"--report-progress[Report progress messages while checking a file]" \
"--report-type=[Add guideline and classification fields for specified coding standard]:standard:$coding_standards" \
"--rule=[Match regular expression]:rule" \
"--rule-file=[Use given rule file]:file:_files" \
"--showtime=[show timing information]:type:(none file file-total summary top5_file top5_summary top5)" \
"--std=[Set standard]:std:(c89 c99 c11 c++03 c++11 c++14 c++17 c++20)" \
"--suppress=[Suppress warnings (format: \[error id\]:\[filename\]:\[line\])]" \
"--suppressions-list=[Suppress warnings listed in the file]:_files" \
"--suppress-xml=[Suppress warnings listed in a xml file]:_files" \
"--template=[Format the error messages]" \
"--template-location=[Format the error message location]" \
"*-U[Undefine preprocessor symbol]:symbol" \
"(-v --verbose)"{-v,--verbose}"[Output more detailed error information]" \
"--version[Print out version number]" \
"--xml[Write results in xml format to stderr]" \
"*: :_cppcheck_files"
}
_cppcheck "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

75
src/_dad Normal file
View File

@ -0,0 +1,75 @@
#compdef dad
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for dad a command line manager of aria2 daemon. (https://github.com/baskerville/diana).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Jindřich Pilař (https://github.com/JindrichPilar)
#
# ------------------------------------------------------------------------------
_dad() {
typeset -A opt_args
local context state line
local curcontext="$curcontext"
local -a commands=(
"start:Start aria2c daemon"
"stop:Stop aria2c daemon"
)
_arguments -C \
'(- 1 *)'-h"[Show help and exit]" \
"-d[Set download dir]:download_dir:->val" \
"-s[Set secret token]:secret_token:->val" \
"-u[Set aria2c username]:username:->val" \
"-p[Set aria2c password]:password:->val" \
'1:cmd:->cmds' \
'*: : :->args'
case "$state" in
(cmds)
_describe -t commands 'commands' commands
;;
esac
}
_dad
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

737
src/_dart Normal file
View File

@ -0,0 +1,737 @@
#compdef dart
# ------------------------------------------------------------------------------
# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for dart 3.9.0 (https://dart.dev/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_dart() {
typeset -A opt_args
local context state line
local curcontext="$curcontext"
local ret=1
_arguments -C -A "-*" \
'(-v --verbose)'{-v,--verbose}'[Show additional command output]' \
'(- *)--version[Print the Dart SDK version]' \
'(--enable-analytics --disable-analytics --suppress-analytics)--enable-analytics[Enable analytics]' \
'(--enable-analytics --disable-analytics --suppress-analytics)--disable-analytics[Disable analytics]' \
'(--enable-analytics --disable-analytics --suppress-analytics)--suppress-analytics[Disallow analytics for this "dart *" run without changing the analytics configuration]' \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_subcommands' \
'*::arg:->args' \
&& ret=0
case "$state" in
(args)
case $words[1] in
(help)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_subcommands' \
&& ret=0
;;
(analyze)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'--fatal-infos[Treat info level issues as fatal]' \
'(--no-fatal-warnings --fatal-warnings)--fatal-warnings[Treat warnings level issue as fatal]' \
'(--no-fatal-warnings --fatal-warnings)--no-fatal-warnings[Do not treat warnings level issue as fatal]' \
'*: :_files -/' \
&& ret=0
;;
(compile)
_dart_compile && ret=0
;;
(create)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-t --template)'{-t,--template}'[The project template to use]:template:(cli console package server-shelf web)' \
'(--no-pub --pub)--pub[Run "pub get" after the project has been created]' \
'(--no-pub --pub)--no-pub[Do not run "pub get" after the project has been created]' \
'--force[Force project generation even if the target directory already exists]' \
'*: :_files -/' \
&& ret=0
;;
(devtools)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(- *)--version[Prints the DevTools version]' \
'--host=[Hostname to serve DevTools on(defaults to localhost)]:host' \
'--port=[Port to serve DevTools on, specify 0 to automatically use any available port(defaults to 9100)]:port' \
'--dtd-uri=[A URI pointing to a Dart Tooling Daemon]:uri' \
'(--no-launch-browser --launch-browser)--launch-browser[Launches DevTools in a browser immediately at start]' \
'(--no-launch-browser --launch-browser)--no-launch-browser[Do not launches DevTools in a browser immediately at start]' \
'--machine[Sets output format to JSON for consumption in tools]' \
'--record-memory-profile=[Start devtools headlessly and write memory profiling samples to the indicated file]:file:_files' \
'--app-size-base=[Path to the base app size file used for app size]' \
'(--no-disable-cors --disable-cors)--disable-cors[Disable CORS]' \
'(--no-disable-cors --disable-cors)--no-disable-cors[Do not disable CORS]' \
'*:server_uri :' \
&& ret=0
;;
(doc)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-o --output)'{-o,--output=}'[Configuration the output directory(defaults to "doc/api")]:dir:_files -/' \
'(--dry-run)--validate-links[Display warnings for broken links]' \
'(--validate-links)--dry-run[Try to generate the docs without saving them]' \
'*:dir:_files -/' \
&& ret=0
;;
(fix)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-n --dry-run)'{-n,--dry-run}'[Preview the proposed changes but make no changes]' \
'--apply[Apply the proposed changes]' \
'--code=[Apply fixes for one or more diagnostics codes]:codes' \
'*: :_files' \
&& ret=0
;;
(format)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-v --verbose)'{-v,--verbose}'[Show all options and flags with --help]' \
'(-o --output)'{-o,--output}'[Set where to write formatted output]:format:_dart_format_output' \
'--show[Set which filenames to print]:show type:(all changed none)' \
'--summary[Show the specified summary after formatting]:summary type:(line none profile)' \
'--set-exit-if-changed[Return exit code 1 if there are any formatting changes]' \
'--page-width[Try to keep lines no longer than this(defaults to 80)]:width' \
'--trailing-commas[How trailing commas in input affect formatting]:style:(automate preserve)' \
'(-i --indent)'{-i,--indent}'[Add this many spaces of leading indentation]' \
'--follow-links[Follow links to files and directories]' \
'(- *)--version[Show dart_style version]' \
'--enable-experiment[Enable one or more experimental features]:features' \
'--selection[Track selection through formatting]:selection' \
'--stdin-name[Use this path in error messages when input is read from stdin]:name' \
'*:file_or_directory:_files' \
&& ret=0
;;
(info)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(--no-remove-file-paths --remove-file-paths)--remove-file-paths[Remove file paths in displayed information]' \
'(--no-remove-file-paths --remove-file-paths)--no-remove-file-paths[Do not remove file paths in displayed information]' \
'*: :_files' \
&& ret=0
;;
(pub)
_dart_pub && ret=0
;;
(run)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-r --resident)'{-r,--resident}'[Enable faster startup times with the resident frontend compiler]' \
'--resident-compiler-info-file[The path to an info file to use to communicate with a resident frontend compiler]:file:_files' \
'--observe=[Specify debug port and bind address]:port_address' \
'--enable-vm-service=[Enable the VM service and listens on the specified port for connections(default port 8181)]:port_address' \
'(--serve-devtools --no-serve-devtools)--serve-devtools[Serves an instance of the Dart DevTools debugger and profiler]' \
'(--serve-devtools --no-serve-devtools)--no-serve-devtools[Do not serve an instance of the Dart DevTools debugger and profiler]' \
'--pause-isolates-on-exit[Pause isolates on exit when running with --enable-vm-service]' \
'--pause-isolates-on-unhandled-exceptions[Pause isolates when an unhandled exception is encountered when running with --enable-vm-service]' \
'--warn-on-pause-with-no-debugger[Print a warning when an isolate pauses with no attached debugger when running with --enable-vm-service]' \
'--timeline-streams=[Enables recording for specific timeline streams]:stream:_dart_run_timeline_streams' \
'--pause-isolates-on-start[Pause isolates on start when running with --enable-vm-service]' \
'--profile-microtasks[Record information about each microtask]' \
'(--enable-asserts --no-enable-asserts)--enable-asserts[Enable assert statements]' \
'(--enable-asserts --no-enable-asserts)--no-enable-asserts[Do not enable assert statements]' \
'--timeline-recorder=[Selects the timeline recorder to use]:recorder:(none ring endless startup systrace file callback)' \
'--verbosity[Sets the verbosity level of the compilation]:level:(all error info warning)' \
'*'{-d,--define=}'[Define an environment declaration]:key_value:' \
'--disable-service-auth-codes[Disables the requirement for an authentication code]' \
'--enable-service-port-fallback[Use 0 if binding port is failed]' \
'--root-certs-file=[The path to a file containing the trusted root certificates]:file:_files' \
'--root-certs-cache=[The path to a cache directory containing the trusted root certificates]:_files -/' \
'--trace-loading[Enable tracing of library and script loading]' \
'--packages=[The path to the package resolution configuration file]:file:_files'\
'--write-service-info=[Outputs information necessary to connect to the VM service]:service_info:_files' \
'(--no-dds --dds)--dds[Use the Dart Development Service for enhanced debugging functionality]' \
'(--no-dds --dds)--no-dds[Not use the Dart Development Service for enhanced debugging functionality]' \
'(--no-serve-observatory --serve-observatory)--serve-observatory[Enable hosting Observatory throught the VM service]' \
'(--no-serve-observatory --serve-observatory)--no-serve-observatory[Disable hosting Observatory throught the VM service]' \
'(--no-print-dtd --print-dtd)--print-dtd[Prints connection details for the Dart Tooling Daemon]' \
'(--no-print-dtd --print-dtd)--no-print-dtd[Not print connection details for the Dart Tooling Daemon]' \
'--enable-experiment=[Enable one or more experimental features]:features:_dart_run_enable_experiment' \
'*: :_files' \
&& ret=0
;;
(test)
_arguments \
'(- *)'{-h,--help}'[Print this usage information]' \
'(- *)--version[Show the package:test version]' \
'*'{-n,--name}'[A substring of the name of the test to run]:name' \
'*'{-N,--plain-name}'[A plain-text substring of the name of the test to run]:plain_name' \
'*'{-t,--tags}'[Run only tests with all of the specified tags]:tag' \
'*'{-x,--exclude-tags}'[Do not run tests with any of the specified tags]:tag' \
'--run-skipped[Run skipped tests instead of skipping them]' \
'(-p --platform)'{-p,--platform}'[The platform on which to run the tests]:platform:(vm chrome firefox edge node experimental-chrome-wasm)' \
'(-c --compiler)'{-c,--compiler}'[The compiler to use to run tests]:compiler:(dart2js dart2wasm exe kernel source)' \
'(-P --preset)'{-P,--preset}'[The configuration preset to use]:preset' \
'(-j --concurrency)'{-j,--concurrency}'[The number of concurrent test suites run(defaults to 1)]:concurrency' \
'--total-shards[The total number of invocations of the test runner being run]:number' \
'--shard-index[The index of this test runner invocation]:index' \
'(--ignore-timeouts --timeout)--timeout[The default test timeout]:timeout' \
'(--ignore-timeouts --timeout)--ignore-timeouts[Ignore all timeouts]' \
'--pause-after-load[Pause for debugging before any tests execute]' \
'--debug[Run the VM and Chrome tests in debug mode]' \
'--coverage=[Gather coverage and output it to the specified directory]:dir:_files -/' \
'(--no-chain-stack-traces --chain-stack-traces)--chain-stack-traces[Use chained stack traces to provide greater exception]' \
'(--no-chain-stack-traces --chain-stack-traces)--no-chain-stack-traces[Do not use chained stack traces to provide greater exception]' \
'--no-retry[Do not rerun tests that have retry set]' \
'--test-randomize-ordering-seed[Use the specified seed to randomize the execution order of test cases]:seed' \
'(--no-fail-test --fail-test)--fail-test[Stop running tests after the first failure]' \
'(--no-fail-test --fail-test)--no-fail-test[Do not stop running tests after the first failure]' \
'(-r --reporter)'{-r,--reporter=}'[Set how to print test results]:reporter:_dart_test_reporter' \
'--file-reporter[Enable an additional reporter writing test results to a file]:reporter_file' \
'--verbose-trace[Emit stack traces with core library frames]' \
'--js-trace[Emit raw JavaScript stack traces for browser tests]' \
'(--color --no-color)--color[Use terminal colors]' \
'(--color --no-color)--no-color[Do not use terminal colors]' \
'*: :_files' \
&& ret=0
;;
esac
;;
esac
return ret
}
(( $+functions[_dart_compile] )) ||
_dart_compile() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_compile_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'(-o --output)'{-o,--output}'[Write the output to file]:output:_files'
)
case $words[1] in
(aot-snapshot|exe|jit-snapshot|kernel)
opts+=(
'--verbosity[Sets the verbosity level of the compilation]:level:(all error info warning)'
'(-p --packages)'{-p,--packages=}'[Get package locations from the specified file instead of .dart_tool/package_config.json]:config:_files'
)
;|
(aot-snapshot|exe|jit-snapshot|kernel|wasm)
opts+=(
'*'{-d,--define=}'[Define an environment declaration]:key_value:'
)
;|
(aot-snapshot|exe|kernel)
opts+=(
'--depfile=[Path to output Ninja depfile]:file:_files'
)
;|
(aot-snapshot|exe)
opts+=(
'(-S --save-debugging-info)'{-S,--save-debugging-info=}'[Remove debugging information from the output and save it separately to the specified file]:file:_files'
'--target-os[Compile to a specific target operating system]:os:(android fuchsia ios linux macos windows)'
)
;|
(aot-snapshot|wasm)
opts+=(
'--enable-asserts[Enable assert statements]'
)
;|
(kernel)
opts+=(
'(--no-link-platform --link-platform)--link-platform[Include the platform kernel in the resulting kernel file]'
'(--no-link-platform --link-platform)--no-link-platform[Do not include the platform kernel in the resulting kernel file]'
'(--no-embed-sources --embed-sources)--embed-sources[Embed source files in the generated kernel component]'
'(--no-embed-sources --embed-sources)--no-embed-sources[Do not embed source files in the generated kernel component]'
)
;|
(wasm)
opts+=(
'(--no-source-maps --source-maps)--source-maps[Generate a source map file]'
'(--no-source-maps --source-maps)--no-source-maps[Not generate a source map file]'
)
;;
(js)
opts+=(
'-O-[Set the compiler optimization level(defaults to -O1)]:level:(0 1 2 3 4)'
)
;;
esac
opts+=('*:entry_point:_files')
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_compile_subcommands] )) ||
_dart_compile_subcommands() {
local -a commands=(
"aot-snapshot:Compile Dart to an AOT snapshot"
"exe:Compile Dart to a self-contained executable"
"jit-snapshot:Compile Dart to a JIT snapshot"
"js:Compile Dart to JavaScript"
"kernel:Compile Dart to a kernel snapshot"
"wasm:Compile Dart to a WebAssembly/WasmGC module"
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_format_output] )) ||
_dart_format_output() {
local -a outputs=(
"json:Print code and selection as JSON"
"none:Discard output"
"show:Print code to terminal"
"write:Overwrite formatted files on disk(default)"
)
_describe -t outputs 'output' outputs "$@"
}
(( $+functions[_dart_pub] )) ||
_dart_pub() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'(-v --verbose)'{-v,--verbose}'[Print detailed logging]' \
'(--color --no-color)--color[Use colors in terminal output]' \
'(--color --no-color)--no-color[Do not use colors in terminal output]' \
'(-C --directory)'{-d,--directory=}'[Run the subcommand in the directory]:dir:_files -/'\
'1: :_dart_pub_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
)
case $words[1] in
(add|downgrade|get|publish|remove|upgrade)
opts+=(
'(- *)'{-h,--help}'[Print this usage information]'
'(-n --dry-run)'{-n,--dry-run}'[Report what dependencies would change but do not change any]'
'(-C --directory)'{-C,--directory=}'[Run this in the directory]:dir:_files -/'
'*: :_files'
)
;|
(add|downgrade|get|upgrade)
opts+=(
'--offline[Use cached packages instead of accessing the network]'
)
;|
(add|get|remove|upgrade)
opts+=(
'--precompile[Build executables in immediate dependencies]'
)
;|
(get)
opts+=(
'--enforce-lockfile[Enforce pubspec.lock]'
)
;|
(publish)
opts+=(
'(-f --force)'{-f,--force}'[Publish without confirmation if there are no errors]'
'--skip-validation[Publish without validation and resolution]'
)
;|
(upgrade)
opts+=(
'--tighten[Updates lower bounds in pubspec.yaml to match the resolved version]'
'--unlock-transitive[Also upgrades the transitive dependencies of the listed dependencies]'
'--major-versions[Upgrades packages to their latest resolvable versions and updates pubspec.yaml]'
)
;|
(bump)
_dart_pub_bump && return 0
;;
(cache)
_dart_pub_cache && return 0
return 1
;;
(deps)
opts+=(
'(-s --style)'{-s,--style}'[How output should be displayed]:style:(compact tree list)'
'(--dev --no-dev)--dev[Include dev dependencies]'
'(--dev --no-dev)--no-dev[Do not include dev dependencies]'
'--executables[List all available executables]'
'--json[Output dependency information in a json format]'
'(-C --directory)'{-C,--directory=}'[Run this in the directory]:dir:_files -/'
)
;;
(global)
_dart_pub_global && return 0
return 1
;;
(outdated)
opts+=(
'(--no-dependency-overrides --dependency-overrides)--dependency-overrides[Show resolutions with "dependency_overrides"]'
'(--no-dependency-overrides --dependency-overrides)--no-dependency-overrides[Do not show resolutions with "dependency_overrides"]'
'(--no-dev-dependencies --dev-dependencies)--dev-dependencies[Take dev dependencies into account]'
'(--no-dev-dependencies --dev-dependencies)--no-dev-dependencies[Do not take dev dependencies into account]'
'--json[Output the results using a json format]'
'(--no-prereleased --prereleases)--prereleases[Include prereleases in latest version]'
'(--no-prereleased --prereleases)--no-prereleases[Do not include prereleases in latest version]'
'(--no-show-all --show-all)--show-all[Include dependencies that are already fulfilling --mode]'
'(--no-show-all --show-all)--no-show-all[Do not include dependencies that are already fulfilling --mode]'
'(--no-transitive --transitive)--transitive[Show transitive dependencies]'
'(--no-transitive --transitive)--no-transitive[Do not show transitive dependencies]'
'(-C --directory)'{-C,--directory=}'[Run this in the directory]:dir:_files -/' )
;;
(token)
_dart_pub_token && return 0
return 1
;;
esac
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_subcommands] )) ||
_dart_pub_subcommands() {
local -a commands=(
"add:Add dependencies to 'pubspec.yaml'"
"bump:Increases the version number of the current package"
"cache:Work with the system cache"
"deps:Print package dependencies"
"downgrade:Downgrade the current package's dependencies to oldest versions"
"get:Get the current package's dependencies"
"global:Work with global packages"
"login:Log into pub.dev"
"logout:Log out of pub.dev"
"outdated:Analyze your dependencies to find which ones can be upgraded"
"publish:Publish the current package to pub.dev"
"remove:Removes dependencies from 'pubspec.yaml'"
"token:Manage authentication tokens for hosted pub repositories"
"unpack:Downloads a package and unpacks it in place"
"upgrade:Upgrade the current package's dependencies to latest versions"
"workspace:Work with the pub workspace"
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_pub_bump] )) ||
_dart_pub_bump() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_pub_bump_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'(-n --dry-run)'{-n,--dry-run}'[Report what would change, but do not change anything]'
)
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_bump_subcommands] )) ||
_dart_pub_bump_subcommands() {
local -a commands=(
'breaking:Increment to the next breaking version(eg. 0.1.2 -> 0.2.0)'
'major:Increment the major version number(eg. 3.1.2 -> 4.0.0)'
'minor:Increment the minor version number(eg. 3.1.2 -> 3.2.0)'
'patch:Increment the patch version number(eg. 3.1.2 -> 3.1.3)'
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_pub_cache] )) ||
_dart_pub_cache() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_pub_cache_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'*: :_files'
)
case $words[1] in
(add)
opts+=(
'--all[Install all matching versions]'
'(-v --version)'{-v,--version}'[Version constraint]:version'
)
;;
(clean)
opts+=(
'(-f --force)'{-f,--force}'[Do not ask for confirmation]'
)
;;
esac
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_cache_subcommands] )) ||
_dart_pub_cache_subcommands() {
local -a commands=(
"add:Install a package"
"clean:Clears the global PUB_CACHE"
"repair:Reinstall cached packages"
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_pub_global] )) ||
_dart_pub_global() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_pub_global_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'*: :_files'
)
case $words[1] in
(activate)
opts+=(
'(-s --source)'{-s,--source}'[The source used to find the package]:source'
'--git-path[Path of git package in repository]:git_path'
'--git-ref[Git branch or commit to be retrieved]:git_ref'
'(-x --executable --noexecutables)--no-executables[Do not put executables on PATH]'
'(-x --executable --noexecutables)'{-x,--executable}'[Executable to place on PATH]'
'--overwrite[Overwrite executables from other packages with the same name]'
'(-u --hosted-url)'{-u,--hosted-url}'[A custom pub server URL for the package]:server'
)
;;
(run)
opts+=(
'(--enable-asserts --no-enable-asserts)--enable-asserts[Enable assert statements]'
'(--enable-asserts --no-enable-asserts)--no-enable-asserts[Do not enable assert statements]'
'*--enable-experiment=[Runs the executable in a VM with the given experiments enabled]:experiment'
)
;;
esac
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_global_subcommands] )) ||
_dart_pub_global_subcommands() {
local -a commands=(
"activate:Make a package's executables globally available"
"deactivate:Remove a previously activated package"
"list:List globally activated packages"
"run:Run an executable from a globally activated package"
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_pub_token] )) ||
_dart_pub_token() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_pub_token_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'*: :_files'
)
case $words[1] in
(add)
opts+=(
'--env-var=[Read the secret token from this environment variable]:envvar'
)
;;
(remove)
opts+=(
'--all[Remove all secret tokens]'
)
;;
esac
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_token_subcommands] )) ||
_dart_pub_token_subcommands() {
local -a commands=(
"add:Add an authentication token for a package repository"
"list:List servers for which a token exists"
"remove:Remove secret token for package repository at hosted-url"
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_pub_workspace] )) ||
_dart_pub_workspace() {
local ret=1
_arguments -C \
'(- *)'{-h,--help}'[Print this usage information]' \
'1: :_dart_pub_workspace_subcommands' \
'*:: :->arg' \
&& ret=0
case $state in
(arg)
local -a opts=(
'(- *)'{-h,--help}'[Print this usage information]'
'--json[Output information in a json format]'
)
_arguments "$opts[@]" && ret=0
;;
esac
return $ret
}
(( $+functions[_dart_pub_workspace_subcommands] )) ||
_dart_pub_workspace_subcommands() {
local -a commands=(
'list:List all packages in the workspace and their directory'
)
_describe -t commands 'command' commands "$@"
}
(( $+functions[_dart_run_timeline_streams] )) ||
_dart_run_timeline_streams() {
local -a streams=(all API Compiler CompilerVerbose Dart Debugger Embedder GC Isolate VM)
_values -s ',' streams $streams
}
(( $+functions[_dart_run_enable_experiment] )) ||
_dart_run_enable_experiment() {
local -a features=(
'augumentations:Augumentations - enhancing declarations from outside'
'const-function:Allow more of the Dart language to be executed in const expression'
'dot-shorthands:Shorter dot syntax for static accesses'
'enhanced-parts:Generalize parts to be nested and have exports/imports'
'getter-setter-error:Stop reporting errors about mismatching types in a getter/setter pair'
'inference-update-4:A bundle of updates to type inference'
'macros:Static meta-programming'
'native-asserts:Compile and bundle native asserts'
'null-aware-elements:Null-aware elements and map entries in collections'
'record-use:Output arguments used by static functions'
'sound-flow-analysis:Assume sound null safety when computing type promotion, reachability, definite assignment'
'test-experiment:Has no effect'
'unquoted-imports:Shorter import syntax'
'variance:Sound variance'
)
_describe -t features 'command' features "$@"
}
(( $+functions[_dart_test_reporter] )) ||
_dart_test_reporter() {
local -a reporters=(
"compact:A single line, updated continuously"
"expanded:A separate line for each update"
"failures-only:A separate line for failing tests with no output for passing tests"
"github:A custom reporter for GitHub Actions"
"json:A machine-readable format"
"silent:A reporter with no output"
)
_describe -t reporters 'reporter' reporters "$@"
}
(( $+functions[_dart_subcommands] )) ||
_dart_subcommands() {
local -a commands=(
"analyze:Analyze Dart code in a directory"
"compile:Compile Dart to various formats"
"create:Create a new Dart project"
"devtools:Open DevTools (optionally connecting to an existing application)"
"doc:Generate API documentation for Dart projects"
"fix:Apply automated fixes to Dart source code"
"format:Idiomatically format Dart source code"
"info:Show diagnostic information about the installed tooling"
"pub:Work with packages"
"run:Run a Dart program"
"test:Run tests for a project"
)
_describe -t commands 'command' commands "$@"
}
_dart "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

71
src/_dget Normal file
View File

@ -0,0 +1,71 @@
#compdef dget
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for dget 2.22.2
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Kris Shannon <k.shannon@amaze.com.au>
# * Shohei YOSHIDA <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_dget() {
local context state line expl
local -A opt_args
_arguments -A "-*" \
'(- *)'{-h,--help}'[Show help message]' \
'(- *)'{-v,--version}'[Print license, copyright, and version information and exit]' \
'(-a --all)'{-a,--all}'[Package is a source package; download all binary packages]' \
'(--no-conf -b --backup)'{-b,--backup}'[Move files that would be overwritten to ./backup]' \
'(--no-conf -q --quiet)'{-q,--quiet}'[Suppress wget/curl output]' \
'(--no-conf -x --extract -d --download-only --build)'{-d,--download-only}'[Do not extract downloaded source]' \
'(--no-conf -x --extract -d --download-only --build)'{-x,--extract}'[Unpack downloaded source]' \
'(--no-conf -u --allow-unauthenticated)'{-u,--allow-unauthenticated}'[Make no attempt to verify source package signature]' \
'(--no-conf -x --extract -d --download-only --build)--build[Build package with dpkg-buildpackage after download]' \
'(--no-conf)--path[Check this directory in addition to the apt archive]:DIR:_files -/' \
'(--no-conf --insecure)--insecure[Do not check SSL certificates when downloading]' \
'(--no-conf --no-cache)--no-cache[Disable server-side HTTP cache]' \
"(--no-conf)--no-conf[Don't read devscripts config files]" \
'(-)*:debian package or URL: _alternative "_deb_packages available" "_urls"'
}
_dget "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,34 +1,9 @@
#compdef dhcpcd
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for dhcpcd 2.3.2.
# Completion script for dhcpcd 9.4.1 (http://roy.marples.name/projects/dhcpcd/)
#
# ------------------------------------------------------------------------------
# Authors
@ -38,36 +13,42 @@
#
# ------------------------------------------------------------------------------
_arguments \
'1:network interface:_net_interfaces' \
- release \
'(-k --release)'{-k,--release}'[causes an existing dhcpcd process running on the interface to release it'\''s lease, deconfigure the interface and then exit]' \
- exit \
'(-x --exit)'{-x,--exit}'[causes an existing dhcpcd process running on the interface to exit]' \
- main \
'(-d --debug)'{-d,--debug}'[echo debug and informational messages to the console]' \
'(-h --hostname)'{-h,--hostname}'[specify the hostname sent, or an empty string to stop any hostname from being sent]:hostname:_hosts' \
'(-i --classid)'{-i,--classid}'[override the DHCP vendor classid field we send]:classid' \
'(-l --leasetime)'{-l,--leasetime}'[request a specific lease time in seconds]:lesae time \(seconds\)' \
'(-m --metric)'{-m,--metric}'[added routes will use the metric on systems where this is supported]:metric' \
'(-n --renew)'{-n,--renew}'[notifies an existing dhcpcd process running on the interface to renew it'\''s lease]' \
'(-p --persistent)'{-p,--persistent}'[don'\''t deconfigure the interface and configuration at exit]' \
'(-r --request)'{-r,--request}'[skip the broadcast request step and just request an address]:address' \
'(-s --inform)'{-s,--inform}'[behaves exactly like -r, but sends a DHCP inform instead of a request]:address' \
'(-t --timeout)'{-t,--timeout}'[timeout after seconds, instead of the default 20]:timeout \(seconds\)' \
'(-u --userclass)'{-u,--userclass}'[tags the DHCP message with the userclass class]:class' \
'*'{-H,--sethostname}'[forces dhcpcd to set the hostname as supplied by the DHCP server]' \
'({-I --clientid)'{-I,--clientid}'[send clientid as a client identifier string]:clientid' \
'*'{-S,--mscsr}'[request Microsoft specific Classless Static Routes (RFC 3442) code as well]' \
'(-A --noarp)'{-A,--noarp}'[don'\''t request or claim the address by ARP]' \
'(-G --nogateway)'{-G,--nogateway}'[don'\''t set any default routes]' \
'(-L --noipv4ll)'{-L,--noipv4ll}'[don'\''t use IPv4LL at all]' \
'(-M --nomtu)'{-M,--nomtu}'[don'\''t set the MTU of the interface]' \
'(-N --nontp)'{-N,--nontp}'[don'\''t touch /etc/ntpd.conf or restart the ntp service]' \
'(-R --nodns)'{-R,--nodns}'[don'\''t send DNS information to resolvconf or touch /etc/resolv.conf]' \
'(-T --test)'{-T,--test}'[on receipt of discover messages, simply print the contents of the DHCP message to the console]' \
'(-Y --nonis)'{-Y,--nonis}'[don'\''t touch /etc/yp.conf or restart the ypbind service]'
'(-b --background)'{-b,--background}'[Background immediately]' \
'(-c --script)'{-c,--script}'[Use this script instead of the default]: :_files' \
'(-D --duid)'{-d,--duid}'[Use a DHCP Unique Identifier]:id' \
'(-d --debug)'{-d,--debug}'[Echo debug messages to the stderr and syslog]' \
'(-E --lastlease)'{-E,--lastlease}'[If dhcpcd cannot obtain a lease, then try to use the last lease acquired for the interface]' \
'--lastleaseextend[Same as the -E/--lastlease, but the lease will be retained even if it expires]' \
\*{-e,--env}'[Push value to the environment for use in dhcpcd-run-hooks(8)]:env' \
'(-g --reconfigure)'{-g,--reconfigure}'[dhcpcd will re-apply IP address, routing and run dhcpcd-run-hooks(8) for each interface]' \
'(-F --fqdn)'{-F,--fqdn}'[Requests that the DHCP server updates DNS using FQDN instead of just a hostname]:fqdn' \
'(-f --config)'{-f,--config}'[Specify a config to load instead of default]: :_files' \
'(-h --hostname)'{-h,--hostname}'[Sends hostname to the DHCP server so it can be registered in DNS]:hostname' \
'(-I --clientid)'{-I,--clientid}'[Send the clientid]:clientid' \
'(-i --vendorclassid)'{-i,--vendorclassid}'[Override the DHCPv4 venderclassid field sent]:vendorclassid' \
'(-j --logfile)'{-j,--logfile}'[Writes to the specified logfile]: :_files' \
\*{-k,--release}'[Release its lease and de-configure the interface regardless of -p, --persistent option]: :_net_interfaces' \
'(-l --leasetime)'{-l,--leasetime}'[Request a lease time of seconds. -1 represents an infinite lease time]:seconds' \
'(-M --manager)'{-M,--manager}'[Start dhcpcd in Manager mode even if only one interface specified on the command line]' \
'(-m --metric)'{-m,--metric}'[Metrics are used to prefer an interface over another one, lowest wins]:metric' \
\*{-n,--rebind}'[Notifies dhcpcd to reload its configuration and rebind the specified interface]: :_net_interfaces' \
\*{-N,--renew}'[Notifies dhcpcd to renew existing addresses on the specified interface]: :_net_interfaces' \
\*{-o,--option}'[Request the DHCP option variable for use in dhcpcd-run-hooks]:option' \
'(-p --persistent)'{-p,--persistent}"[Don't de-configure the interface and configuration at exit]" \
'(-r --request)'{-r,--request}'[Request the address in the DHCP DISCOVER message]:address' \
'(-s --inform)'{-s,--inform}'[Behaves exactly like -r, but sends a DHCP inform instead of a request]:address' \
'--inform6[Performs a DHCPv6 Information Request]' \
\*{-S,--static}'[Configures a static DHCP value]:value' \
'(-t --timeout)'{-t,--timeout}'[Timeout after seconds]:seconds' \
'(-u --userclass)'{-u,--userclass}'[Tags the DHCPv4 message with the userclass class]:class' \
'(-v --vendor)'{-v,--vendor}'[Add an encapsulated vendor option]:vendor' \
'(- *)--version[Display both program version and copyright information]' \
'-w[Wait for an address to be assigned before forking to the background]' \
'--waitip=[Wait for an address to assigned before forking to the background]: :(4 6)' \
\*{-x,--exit}'[This will signal an existing dhcpcd process running on the interface to exit]: :_net_interfaces' \
'(-y --reboot)'{-y,--reboot}'[Allow reboot seconds before moving to the discover phase if we have an old lease to use]:seconds' \
'1:network interface:_net_interfaces'
# Local Variables:
# mode: Shell-Script

150
src/_diana Normal file
View File

@ -0,0 +1,150 @@
#compdef diana
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Diana a command line interface to the aria2 daemon. (https://github.com/baskerville/diana).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Jindřich Pilař (https://github.com/JindrichPilar)
#
# ------------------------------------------------------------------------------
local GIDs PGIDs
_diana_load_gids() {
GIDs=()
local downloads hashArr fileName
downloads=$(diana list | cut -d' ' -f1)
if [ ${#downloads} -eq "0" ]; then
return
fi
hashArr=("${(f)$(echo "$downloads")}")
for ((i=1; i<=${#hashArr[@]}; i++)); do
fileName=$(diana files $hashArr[i] | grep "[X]" | rev | cut -d'/' -f1 | rev);
GIDs+=("$hashArr[i]:$fileName");
done
}
_diana_load_paused_gids() {
PGIDs=()
local downloads hashArr fileName
downloads=$(diana paused | cut -d' ' -f1)
if [ ${#downloads} -eq "0" ]; then
return
fi
hashArr=("${(f)$(echo "$downloads")}")
for ((i=1; i<=${#hashArr[@]}; i++)); do
fileName=$(diana files $hashArr[i] | grep "[X]" | rev | cut -d'/' -f1 | rev);
PGIDs+=("$hashArr[i]:$fileName");
done
}
_diana_command_arguments() {
case $words[1] in
(remove)
_diana_load_gids
_describe -t output 'Downloads to delete' GIDs
;;
(info)
_diana_load_gids
_describe -t output 'Downloads to get info' GIDs
;;
(files)
_diana_load_gids
_describe -t output 'Get files for downloads' GIDs
;;
(forcerm)
_diana_load_gids
_describe -t output 'Downloads to delete' GIDs
;;
(pause)
_diana_load_gids
_describe -t output 'Downloads to pause' GIDs
;;
(resume)
_diana_load_paused_gids
_describe -t output 'Downloads to resume' PGIDs
;;
(preview)
_diana_load_gids
_describe -t output 'Downloads to preview' GIDs
;;
esac
}
_diana() {
local -a commands
commands=(
"list:Output the list of active downloads."
"paused:Output the list of paused downloads."
"stopped:Output the list of stopped downloads."
"info:Output information regarding the given GIDs."
"files:Output the files owned by the downloads corresponding to the given GIDs."
"errors:Output the list of errors."
"stats:Output download bandwidth statistics."
"add:Download the given items (local or remote URLs to torrents, etc.)."
"remove:Remove the downloads corresponding to the given GIDs."
"forcerm:Forcibly remove the downloads corresponding to the given GIDs."
"pause:Pause the downloads corresponding to the given GIDs."
"resume:Resume the downloads corresponding to the given GIDs."
"preview:Preview all the files from all the downloads corresponding to the given GIDs."
"sleep:Pause all the active downloads."
"wake:Resume all the paused downloads."
"purge:Clear the list of stopped downloads and errors."
"clean:Stop seeding completed downloads."
)
_arguments -C \
'1:cmd:->cmds' \
'*:: :->args' \
case "$state" in
(cmds)
_describe -t commands 'commands' commands
;;
(*)
_diana_command_arguments
;;
esac
}
_diana

133
src/_direnv Normal file
View File

@ -0,0 +1,133 @@
#compdef direnv
# ------------------------------------------------------------------------------
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS OR THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for direnv 2.34.0 (https://direnv.net/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Nitai J. Perez <youcangetselfish@gmail.com>
#
# ------------------------------------------------------------------------------
(( $+functions[_direnv_commands] )) ||
_direnv_commands() {
local -a commands=(
'allow:Grants direnv permission to load the given .envrc or .env file'
'permit:Grants direnv permission to load the given .envrc or .env file'
'grant:Grants direnv permission to load the given .envrc or .env file'
'block:Revokes the authorization of a given .envrc or .env file'
'deny:Revokes the authorization of a given .envrc or .env file'
'revoke:Revokes the authorization of a given .envrc or .env file'
'edit:Opens PATH_TO_RC or the current .envrc or .env into an $EDITOR and allow the file to be loaded afterwards'
'exec:Executes a command after loading the first .envrc or .env found in DIR'
"fetchurl:Fetches a given URL into direnv's CAS"
'help:shows this help'
'hook:Used to setup the shell hook'
'prune:removes old allowed files'
'reload:triggers an env reload'
'status:prints some debug status information'
'stdlib:Displays the stdlib available in the .envrc execution context'
'version:prints the version or checks that direnv is older than VERSION_AT_LEAST'
)
_describe 'command' commands
}
_direnv() {
local curcontext="$curcontext" state line
typeset -A opt_args
local ret=1
_arguments -C \
'1: :_direnv_commands' \
'*:: :->command_args' && ret=0
case $state in
(command_args)
case $words[1] in
(allow|permit|grant|block|deny|revoke|edit)
_arguments \
'1:rc file:_files' \
&& ret=0
;;
(exec)
_arguments \
'1:directory:_files -/' \
'2:command:_command_names' \
&& ret=0
;;
(hook)
_arguments \
'1:shell:(bash zsh fish tcsh elvish)' \
&& ret=0
;;
(fetchurl)
_arguments \
'1:url:_urls' \
'2:integrity hash' \
&& ret=0
;;
(status)
_arguments \
'--json[print status information in JSON format]' \
&& ret=0
;;
(version)
_arguments \
'1:version at least' \
&& ret=0
;;
(help)
_arguments \
'1:show private:(SHOW_PRIVATE)' \
&& ret=0
;;
(prune|reload|status|stdlib)
# do not complete
ret=0
;;
(*)
_default && ret=0
;;
esac
;;
esac
return ret
}
_direnv "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,53 +0,0 @@
#compdef ditz
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Ditz (http://ditz.rubyforge.org).
#
# Source: https://github.com/technolize/zsh-completion-funcs
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * technolize (https://github.com/technolize)
#
# ------------------------------------------------------------------------------
local ME=ditz
local COMMANDS=--commands
local OPTIONS='<options>'
if (($CURRENT == 2)); then
# We're completing the first word after the tool: the command.
_wanted command expl "$ME command" \
compadd -- $( "$ME" "$COMMANDS" )
else
# Find the options/files/URL/etc. for the current command by using the tool itself.
case "${words[$CURRENT]}"; in
-*)
_wanted args expl "Arguments for $ME ${words[2]}" \
compadd -- $( "$ME" "${words[2]}" "$OPTIONS" ; _files )
;;
ht*|ft*)
_arguments '*:URL:_urls'
;;
/*|./*|\~*|../*)
_arguments '*:file:_files'
;;
*)
_wanted args expl "Arguments for $ME ${words[2]}" \
compadd -- $( "$ME" "${words[2]}" "$OPTIONS" )
;;
esac
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

56
src/_do-release-upgrade Normal file
View File

@ -0,0 +1,56 @@
#compdef do-release-upgrade
# ------------------------------------------------------------------------------
# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for do-release-upgrade 23.10.10
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_arguments \
'(- *)'{-h,--help}'[Show this help message and exit]' \
'(- *)'{-v,--version}'[Show version and exit]' \
'(-d --devel-release)'{-d,--devel-release}'[Upgrade to the development release]' \
'--data-dir=[Directory that contains the data files]:dir:_files -/' \
'(-p --proposed)'{-p,--proposed}'[Try upgrading to the latest release using the upgrade from \$distro-proposed]' \
'(-m --mode)'{-m,--mode=}'[Run in a special upgrade mode]:mode:(desktop server)' \
'(-f --frontend)'{-f,--frontend}'[Run the specified frontend]:frontend' \
'(- *)--check-dist-upgrade-only[Check only if a new distribution release is available]' \
'--allow-third-party[Try the upgrade with third party mirrors and repositories]' \
'(-q --quiet)'{-q,--quiet}'[Quiet mode]' \
\*{-e,--env=}'[A comma-separated list of environment variables]'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

90
src/_docpad Normal file
View File

@ -0,0 +1,90 @@
#compdef docpad
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for docpad v6.38.2 (https://github.com/bevry/docpad).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Changwoo Park (https://github.com/pismute)
# * Shohei Yoshida (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_docpad_subcommands() {
local -a commands=(
"run:run docpad on your project"
"init:initialize your project"
"generate:(re)generates your project"
"render:render the file at <path> and output its results to stdout"
"watch:watches your project for changes, and (re)generates whenever a change is made"
"clean:ensure everything is cleaned correctly (will remove your out directory)"
"update:update your local DocPad and plugin installations to their latest compatible version"
"upgrade:update your local DocPad and plugin installations to their latest compatible version"
"install:install plugins"
"uninstall:uninstall a plugin"
"info:display the information about your docpad instance"
)
_describe -t commands 'command' commands "$@"
}
_docpad() {
local ret=1
_arguments \
'--outpath[a custom directory to place the rendered project]: :_files -/' \
'--config[a custom configuration file to load in]: :_files' \
'--env[the environment name to use for this instance, multiple names can be separated with a comma]' \
'--log[the rfc log level to display]:level' \
'(-v --verbose)'{-v,--verbose}'[set log level to 7]' \
'(-d --debug)'{-d,--debug}'[output a log file]' \
'--global[whether or not we should just fire global installation of docpad]' \
'(--color --colour)'{--color,--colour}'[use color terminal output(default: true)]' \
'--silent[do not write anything that is not essential]' \
'--progress[output the progress as it occurs(default: true)]' \
'--version[show version]' \
'(- *)'{-h,--help}'[output usage information]'\
'1: :_docpad_subcommands'\
'*:: :_files' && ret=0
return ret
}
_docpad "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

191
src/_drush Normal file
View File

@ -0,0 +1,191 @@
#compdef drush
# ------------------------------------------------------------------------------
# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Drush (https://drushcommands.com/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vasily Kraev (https://github.com/vasilykraev)
#
# ------------------------------------------------------------------------------
_drush() {
local curcontext='$curcontext' state line cmds ret=1
integer NORMARG
typeset -A opt_args
global_args=('--debug' '--verbose' '--yes' '--no' '--simulate' '--root=' '--uri=')
_arguments -C \
'(--*)'{--version,--version}'[Show drush version.]' \
'(- *)'{-d,--debug}'[Display even more information, including internal messages.]' \
'(- *)'{-v,--verbose}'[Display extra information about the command.]' \
'(- *)'{-y,--yes}'[Assume "yes" as answer to all prompts.]' \
'(- *)'{-n,--no}'[Assume "no" as answer to all prompts.]' \
'(- *)'{-s,--simulate}'[Simulate all relevant actions (don'\''t actually change the system).]' \
'(- *)'{-r,--root=}'[Drupal root directory to use (default: current directory).]' \
'(- *)'{-l,--uri=}'[URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).]' \
'1: :->cmds' \
'*::arg:->args' \
&& ret=0
case $state in
cmds)
_values 'drush command' \
'(archive-dump)'{archive-dump,ard,arb}'[Backup your code, files, and database into a single file.]' \
'(archive-restore)'{archive-restore,arr}'[Expand a site archive into a Drupal web site.]' \
'(cache-clear)'{cache-clear,cc}'[Clear a specific cache, or all drupal caches.]' \
'(core-status)'{core-status,status,st}'[Provides a birds-eye view of the current Drupal installation, if any.]' \
'(core-cron)'{core-cron,cron}'[Run all cron hooks in all active modules for specified site.]' \
'(core-execute)'{core-execute,exec}'[Execute a shell command. Usually used with a site alias.]' \
'(drupal-directory)'{drupal-directory,dd}'[Return the filesystem path for modules/themes and other key folders.]' \
'help[Print this help message.]' \
'image-flush[Flush all derived images for a given style.]' \
'(site-alias)'{site-alias,sa}'[Print an alias record.]' \
'(site-install)'{site-install,si}'[Install Drupal along with modules/themes/configuration using the specified install profile.]' \
'test-clean[Clean temporary tables and files.]' \
'test-run[Run tests. Note that you must use the --uri option.]' \
'(updatedb)'{updatedb,updb}'[Apply any database updates required (as with running update.php).]' \
'(variable-delete)'{variable-delete,vdel}'[Delete a variable.]' \
'(variable-get)'{variable-get,vget}'[Get a list of some or all site variables and values.]' \
'(variable-set)'{variable-set,vset}'[Set a variable.]' \
'(pm-list)'{pm-list,pml}'[Show a list of available extensions (modules and themes).]' \
'(pm-disable)'{pm-disable,dis}'[Disable one or more extensions (modules or themes). Disable dependent extensions as well.]' \
'(pm-download)'{pm-download,dl}'[Download projects from drupal.org or other sources.]' \
'(pm-enable)'{pm-enable,en}'[Enable one or more extensions (modules or themes). Enable dependent extensions as well.]' \
'pm-uninstall[Uninstall one or more modules.]' \
'pm-update[Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).]' \
'(sql-cli)'{sql-cli,sqlc}'[Open a SQL command-line interface using Drupals credentials.]' \
'sql-drop[Drop all tables in a given database.]' \
'sql-dump[Exports the Drupal DB as SQL using mysqldump or equivalent.]' \
'(sql-query)'{sql-query,sqlq}'[Execute a query against the site database.]' \
'sql-sync[Copy and import source database to target database. Transfers via rsync.]' \
'(user-login)'{user-login,uli}'[Display a one time login link for the given user account (defaults to uid 1).]' \
'(user-password)'{user-password,upwd}'[(Re)Set the password for the user account with the specified name.]' \
'(devel-reinstall)'{devel-reinstall,dre}'[Disable, Uninstall, and Install a list of projects. (devel)]' \
'(devel-token)'{devel-token,token}'[List available tokens (devel)]' \
'(generate-content)'{generate-content,genc}'[Create content. (devel_generate)]' \
'(generate-menus)'{generate-menus,genm}'[Create menus and menu items. (devel_generate)]' \
'(generate-terms)'{generate-terms,gent}'[Create terms in specified vocabulary. (devel_generate)]' \
'(generate-users)'{generate-users,genu}'[Create users. (devel_generate)]' \
'(generate-vocabs)'{generate-vocabs,genv}'[Create vocabularies. (devel_generate)]' \
'(features-diff)'{features-diff,fd}'[Show the difference between the default and overridden state of a feature.]' \
'(features-export)'{features-export,fe}'[Export a feature from your site into a module.]' \
'(features-list)'{features-list,fl}'[List all the available features for your site.]' \
'(features-revert)'{features-revert,fr}'[Revert a feature module on your site.]' \
'(features-revert-all)'{features-revert-all,fra}'[Revert all enabled feature module on your site.]' \
'(features-update)'{features-update,fu}'[Update a feature module on your site.]' \
'(features-update-all)'{features-update-all,fua}'[Update all feature modules on your site.]' \
&& ret=0
;;
args)
case $line[1] in
(archive-dump|ard)
_arguments \
'(--description)--description=[Filter out extensions that are provided by drupal core.]' \
'(--destination)--destination=[The full path and filename in which the archive should be stored. If omitted, it will be saved to the drush-backups directory.]' \
'(--no-core)--no-core[Exclude Drupal core, so the backup only contains the site specific stuff.]' \
'(--pipe)--pipe[Only print the destination of the archive. Useful for scripts that don'\''t pass --destination.]' \
'(--tar-options)--tar-options=[Options passed thru to the tar command.]' \
&& ret=0
compadd -a global_args
;;
(archive-restore|arr)
_arguments \
'(--db-prefix)--db-prefix[An optional table prefix to use during restore.]' \
'(--db-su)--db-su[Account to use when creating the new database. Optional.]' \
'(--db-su-pw)--db-su-pw[Password for the "db-su" account. Optional.]' \
'(--db-url)--db-url=[A Drupal 6 style database URL indicating the target for database restore. If not provided, the archived settings.php is used. ]' \
'(--destination)--destination[Specify where the Drupal site should be expanded, including the docroot. Defaults to the current working directory.]' \
'(--overwrite)--overwrite[Allow drush to overwrite any files in the destination.]' \
&& ret=0
compadd -a global_args
;;
(user-password|upwd)
_arguments \
'--password=:Set the password for the username someuser.' \
&& ret=0
;;
(help)
_values 'commands' 'arb' 'archive-dump' 'archive-restore' 'ard' 'arr' 'cache-clear' 'cc' 'core-cron' 'core-execute' 'core-status' 'cron' 'dd' 'devel-reinstall' 'devel-token' 'dis' 'dl' 'dre' 'drupal-directory' 'en' 'exec' 'fd' 'fe' 'features-diff' 'features-export' 'features-list' 'features-revert' 'features-revert-all' 'features-update' 'features-update-all' 'fl' 'fr' 'fra' 'fu' 'fua' 'genc' 'generate-content' 'generate-menus' 'generate-terms' 'generate-users' 'generate-vocabs' 'genm' 'gent' 'genu' 'genv' 'help' 'image-flush' 'pm-disable' 'pm-download' 'pm-enable' 'pm-list' 'pm-uninstall' 'pm-update' 'pml' 'sa' 'si' 'site-alias' 'site-install' 'sql-cli' 'sql-drop' 'sql-dump' 'sql-query' 'sql-sync' 'sqlc' 'sqlq' 'st' 'status' 'test-clean' 'test-run' 'token' 'uli' 'updatedb' 'updb' 'upwd' 'user-login' 'user-password' 'variable-delete' 'variable-get' 'variable-set' 'vdel' 'vget' 'vset'
;;
(cc)
_values 'options' 'all' 'drush' 'theme-registry' 'menu' 'css-js' 'block'
;;
(pm-list|pml)
_arguments \
'(--core)--core[Filter out extensions that are not in drupal core.]' \
'(--no-core)--no-core[Filter out extensions that are provided by drupal core.]' \
'(--pipe)--pipe[Returns a whitespace delimited list of the names of the resulting extensions.]' \
'(--status)--status=-[Filter by extension status. Choices: enabled, disabled and/or "not installed".]:status:(enabled disabled)' \
'(--type)--type=-[Filter by extension type. Choices: module, theme.]:type:(module theme)' \
&& ret=0
;;
(pm-disable|dis)
_modules=( $(drush pml --status=enabled --pipe) )
if [[ $_modules != "" ]]; then
_values 'enabled modules' $_modules
fi
;;
(pm-enable|en)
_arguments -C \
'--resolve-dependencies[Attempt to download any missing dependencies. At the moment, only works when the module name is the same as the project name.]' \
'--skip[Skip automatic downloading of libraries (c.f. devel).]' && ret=0
_modules=( $(drush pml --status="disabled,not installed" --pipe) )
if [[ $_modules != "" ]]; then
_values -s 'not yet enabled modules' $_modules && ret=0
fi
;;
(*)
_values 'Global options' \
{-d,--debug}'[Display even more information, including internal messages.]' \
{-v,--verbose}'[Display extra information about the command.]' \
{-y,--yes}'[Assume "yes" as answer to all prompts.]' \
{-n,--no}'[Assume "no" as answer to all prompts.]' \
{-s,--simulate}'[Simulate all relevant actions (don'\''t actually change the system).]' \
{-r,--root=}'[Drupal root directory to use (default: current directory).]' \
{-l,--uri=}'[URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).]'
;;
esac
;;
esac
}
_drush '$@'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

53
src/_ecdsautil Normal file
View File

@ -0,0 +1,53 @@
#compdef ecdsautil
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ecdsaultils v0.4.0 (https://github.com/freifunk-gluon/ecdsautils)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Robinhuett <https://github.com/Robinhuett>
#
# ------------------------------------------------------------------------------
_ecdsautil_args() {
case $words[1] in
(sign)
_arguments '1:somefile:_files'
;;
(verify)
_arguments '-s[signature]:secret:_files' '-p[publickey]:pubkey:_files'
'-n[signaturecount]:signaturecount:""' ':file:_files'
;;
esac
}
_ecdsautil() {
local -a commands
commands=(
"help:Show help"
"generate-key:generate a new secret on stdout"
"show-key:output public key of secret read from stdin"
"sign:sign file"
"verify:verify signature of file"
)
_arguments -C \
'1:cmd:->cmds' \
'*:: :->args' \
case "$state" in
(cmds)
_describe -t commands 'commands' commands
;;
(*)
_ecdsautil_args
;;
esac
}
_ecdsautil "$@"

105
src/_emacs Normal file
View File

@ -0,0 +1,105 @@
#compdef emacs
# ------------------------------------------------------------------------------
# Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for emacs 29. (https://www.gnu.org/software/emacs/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_arguments \
'--batch[do not do interactive display, implies -q]' \
'--chdir[change to directory]: :_files -/' \
'(--daemon --bg-daemon --fg-daemon)--daemon[start a server in the background]' \
'(--daemon --bg-daemon --fg-daemon)--bg-daemon=-[start a named server in the background]::name' \
'(--daemon --bg-daemon --fg-daemon)--fg-daemon=-[start a named server in the foreground]' \
'--debug-init[enable Emacs Lisp debugger for init file]' \
'(-d --display)'{-d,--display}'[use X server DISPLAY]:display' \
'--module-assertions[assert behavior of dynamic modules]' \
'--dump-file[read dumped state from FILE]: :_files' \
'(- *)--fingerprint[output fingerprint and exit]' \
'--seccomp=[read Seccomp BPF filter from FILE]: :_files' \
'--no-build-details[do not add build details such as time stamps]' \
'--no-desktop[do not load a saved desktop]' \
'(-q --no-init-file)'{-q,--no-init-file}'[loader neither ~/.emacs nor default.el]' \
'(-nl --no-loadup)'{-nl,--no-loadup}'[do not load loadup.el]' \
'--no-site-file[do not load site-start.el]' \
'--no-x-resources[do not load X resources]' \
'(-nsl --no-site-lisp)'{-nsl,--no-site-lisp}'[do not add site-lisp directories to load-path]' \
'--no-splash[do not display a splash screen on startup]' \
'(-nw --no-window-system)'{-nw,--no-window-system}'[do not communicate with X, ignoring $DISPLAY]' \
'--init-directory=[use DIR when looking for the Emacs init files]: :_files -/' \
'(-Q --quick)'{-Q,--quick}'[equivalent to -q --no-site-file --no-site-lisp --no-splash --no-x-resources]' \
'--script[run FILE as an Emacs Lisp script]: :_files' \
'(-t --terminal)'{-t,--terminal}'[use DEVICE for terminal IO]: :_files' \
'(-u --user)'{-u,--user}'[load ~USER/.emacs instead of your own]' \
\*{-L,--directory}'[prepend DIR to load-path(with :DIR, append DIR)]: :_files -/' \
{--eval,--execute}'[evaluate Emacs Lisp expression EXPR]:expr' \
\*{--file,--find-file,--visit}'[visit FILE]: :_files' \
\*{-f,--funcall}'[call Emacs Lisp function FUNC with no arguments]:func' \
'--kill[exit without asking for confirmation]' \
\*{-l,--load}'[load Emacs Lisp FILE using the load function]: :_files' \
'(-bg --background-color)'{-bg,--background-color}'[window background color]:color' \
'(-D --basic-display)'{-D,--basic-display}'[disable many display features]' \
'(-bg --border-color)'{-bg,--border-color}'[main border color]:color' \
'(-bw --border-width)'{-bw,--border-width}'[width of main border]' \
'--color=-[override color mode for character terminals]:: :(auto never always ansi8)' \
'(-cr --cursor-color)'{-cr,--cursor-color}'[color of the Emacs cursor indicating point]:color' \
'(-fn --font)'{-fn,--font}'[default font, must be fixed-width]:font' \
'(-fg --foreground)'{-fg,--foreground}'[window foreground color]:color' \
'(-fh --fullheight)'{-fh,--fullheight}'[make the first frame high as the screen]' \
'(-fs --fullscreen)'{-fs,--fullscreen}'[make the first frame fullscreen]' \
'(-fw --fullwidth)'{-fw,--fullwidth}'[make the first frame wide as the screen]' \
'(-mm --maximized)'{-mm,--maximized}'[make the first frame maximized]' \
'(-g --geometry)'{-g,--geometry}'[window geometry]:geometry' \
'(-nbi --no-bitmap-icon)'{-nbi,--no-bitmap-icon}'[do not use picture of gnu for Emacs icon]' \
'--iconic[start Emacs in iconified state]' \
'(-ib --internal-border)'{-ib,--internal-border}'[width between text and main border]:width' \
'(-lsp --line-spacing)'{-lsp,--line-spacing}'[additional space to put between lines]' \
'(-ms --mouse-color)'{-ms,--mouse-color}'[mouse cursor color in Emacs window]:color' \
'(-T --name --title)'{-T,--name,--title}'[title for initial Emacs frame]:title' \
'(-nbc,--no-blinking-cursor)'{-nbc,--no-blinking-cursor}'[disable blinking cursor]' \
'(-r -rv --reverse-video)'{-r,-rv,--reverse-video}'[switch foreground and background]' \
'(-vb --vertical-scroll-bars)'{-vb,--vertical-scroll-bars}'[enable vertical scroll bars]' \
'--xrm[set additional X resources]:resource' \
'--parent-id[set parent window]:xid' \
'(- *)--help{display help and exit}' \
'(- *)--version[output version information and exit]' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

66
src/_emacsclient Normal file
View File

@ -0,0 +1,66 @@
#compdef emacsclient
#
# ------------------------------------------------------------------------------
# Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for emacsclient 29
# - https://www.gnu.org/software/emacs/manual/html_node/emacs/Invoking-emacsclient.html
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_arguments -s -n : \
'(- *)'{-V,--version}'[Print version information and exit]' \
'(- *)'{-H,--help}'[Print this usage information message and exit]' \
'(-nw -t --tty)'{-nw,-t,--tty}'[Open a new Emacs frame on the current terminal]' \
'(-c --create-frame)'{-c,--create-frame}'[Create a new frame instead of trying to use the current Emacs frame]' \
'(-r --reuse-frame)'{-r,--reuse-frame}'[Create a new frame if none exists, otherwise use the current Emacs frame]' \
'(-F --frame-parameters)'{-F,--frame-parameters=}'[Set the parameters of a new frame]:alist' \
'(-e --eval)'{-e,--eval}'[Evaluate as Emacs Lisp expressions]' \
'(-n --no-wait)'{-n,--no-wait}'[Returns immediately without waiting for finish]' \
'(-w --timeout)'{-w,--timeout=}'[Seconds to wait before timing out]:seconds' \
'(-q --quiet)'{-q,--quiet}"[Don't display messages on success]" \
'(-u --suppress-output)'{-u,--suppress-output}"[Don't display return values from the server]" \
'(-d --display)'{-d,--display=}'[Tell the server to display the files on the given display]:display:_x_display' \
'--parent-id=[Open in parent window ID, via XEmbed]' \
'(-s --socket-name)'{-s,--socket-name=}'[Set filename of the UNIX socket for communication]: :_files' \
'(-f --server-file)'{-f,--server-file=}'[Set filename of the TCP authentication file]: :_files' \
'(-a --alternate-editor)'{-a,--alternate-editor=}'[Editor to fallback to if the server is not running if EDITOR is the empty string]:editor:_files' \
'(-T --tramp)'{-T,--tramp=}'[PREFIX to prepend to filenames sent by emacsclient for locating files remotely via Tramp]:prefix' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,35 +1,10 @@
#compdef emulator
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for emulator (Android Emulator) 12.0
# (http://developer.android.com/guide/developing/tools/emulator.html).
# (https://developer.android.com/studio/run/emulator-command).
#
# ------------------------------------------------------------------------------
# Authors
@ -43,11 +18,15 @@
typeset -A opt_args
local context state line curcontext="$curcontext"
_list_avds() {
local -a _avds=($HOME/.android/avd/*.ini(N.:t:r))
echo "${_avds[@]}"
}
# TODO All image options are contextual to -sysdir value
# TODO All skin options are contextual to -skindir value
# TODO snapshot options are mutually exclusive
# TODO Use '-snapshot-list' output for snapshot names
# TODO Complete -avd with avd names ?
# TODO -logcat: use completer from _adb
# TODO Complete options with device values
# TODO Complete -prop
@ -64,9 +43,11 @@ _arguments \
'(- : *)-help-sdk-images[about disk images when using the SDK]' \
'(- : *)-help-build-images[about disk images when building Android]' \
'(- : *)-help-all[prints all help content]' \
'(- : *)-help-'{version,sysdir,system,image,datadir,kernel,ramdisk,initdata,data,partition-size,cache,no-cache,nocache,sdcard,snapstorage,no-snapstorage,snapshot,no-snapshot,no-snapshot-save,no-snapshot-load,snapshot-list,no-snapshot-update-time,wipe-data,avd,skindir,skin,noskin,no-skin,memory,netspeed,netdelay,netfast,trace,show-kernel,shell,no-jni,nojni,logcat,noaudio,no-audio,audio,raw-keys,radio,port,ports,onion,onion-alpha,onion-rotation,scale,dpi-device,http-proxy,timezone,dns-server,cpu-delay,no-boot-anim,no-window,report-console,gps,keyset,shell-serial,tcpdump,bootchart,charmap,prop,shared-net-id,nand-limits,memcheck,qemu,verbose}'[print option-specific help]' \
'(- : *)-help-'{version,list-avds,sysdir,system,writable-system,image,datadir,kernel,ramdisk,initdata,data,partition-size,cache,no-cache,nocache,sdcard,snapstorage,no-snapstorage,snapshot,no-snapshot,no-snapshot-save,no-snapshot-load,snapshot-list,no-snapshot-update-time,wipe-data,avd,skindir,skin,noskin,no-skin,memory,cores,accel,no-accel,netspeed,netdelay,netfast,trace,show-kernel,shell,no-jni,nojni,logcat,noaudio,no-audio,audio,raw-keys,radio,port,ports,onion,onion-alpha,onion-rotation,scale,dpi-device,http-proxy,timezone,dns-server,cpu-delay,no-boot-anim,no-window,report-console,gps,keyset,shell-serial,tcpdump,bootchart,charmap,prop,shared-net-id,nand-limits,memcheck,qemu,verbose}'[print option-specific help]' \
'-list-avds[list available AVDs]' \
'-sysdir[search for system disk images in the directory]: :_files -/' \
'(-system -image)'{-system,-image}'[read initial system image from the file]: :_files -g "*.img"' \
'-writable-system[make system image writable after '\''adb remount'\'']' \
'-datadir[write user data into the directory]: :_files -/' \
'-kernel[use specific emulated kernel]: :_files' \
'-ramdisk[ramdisk image (default <system>/ramdisk.img]: :_files -g "*.img"' \
@ -85,11 +66,14 @@ _arguments \
'-snapshot-list[show a list of available snapshots]' \
'-no-snapshot-update-time[do not do try to correct snapshot time on restore]' \
'-wipe-data[reset the user data image (copy it from initdata)]' \
'-avd[use a specific android virtual device]:android virtual device name' \
'-avd[use a specific android virtual device]:android virtual device name:($(_list_avds))' \
'-skindir[search skins in <dir> (default <system>/skins)]: :_files -/' \
'-skin[select a given skin]' \
'(-noskin -no-skin)'{-noskin,-no-skin}'[don'\''t use any emulator skin]' \
'-memory[physical RAM size in MBs]:size (in MBs)' \
'-cores[Set number of CPU cores to emulator]:number' \
'(-no-accel)-accel[Configure emulation acceleration]:mode' \
'(-accel)-no-accel[Same as '\''-accel off'\'']' \
'-netspeed[maximum network download/upload speeds]:speed' \
'-netdelay[network latency emulation]:delay' \
'-netfast[disable network shaping]' \
@ -128,7 +112,21 @@ _arguments \
'-memcheck[enable memory access checking]:flags' \
'-qemu[pass arguments to qemu]:arguments' \
'-verbose[same as '\''-debug-init'\'']' \
'*'{-debug,-debug-,-debug-no-}'[enable/disable specific debug messages]:tag'
'*'{-debug,-debug-,-debug-no-}'[enable/disable specific debug messages]:tag' \
'1: :->cmds' \
'*:: :->args' && ret=0
case $state in
cmds)
local -a _avds=($(_list_avds))
for ((i=1; i<=${#_avds[@]}; i++)); do
_avds[i]="@${_avds[i]}"
done
_values 'avds' "${_avds[@]}"
;;
esac
return ret
# Local Variables:
# mode: Shell-Script

57
src/_envdir Normal file
View File

@ -0,0 +1,57 @@
#compdef envdir
# ------------------------------------------------------------------------------
# Copyright (c) 2016, Github zsh-users (https://github.com/zsh-users)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for envdir (https://github.com/jezdez/envdir).
# It completes its few options and then a directory and command.
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Daniel Hahler <https://daniel.hahler.de/>
#
# ------------------------------------------------------------------------------
local -a args=(
'(-h --help)'{-h+,--help}'[show this help message and exit]'
'(-)'--version'[display version information and exit]'
'(-)1:directory: _path_files -/'
'(-)2:command: _command_names -e'
'*::arguments: _precommand'
)
_arguments -S $args
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,207 +0,0 @@
#compdef eselect
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Eselect (symlink manager for multiversioning
# and multibranding support for some libraries and binaries).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vadim A. Misbakh-Soloviov <mva@mva.name>
# * Bapt <bapt@tuxfamily.org>
# * kaworu <kaworu@kaworu.ch>
# * David Durrleman <dualmoo@gmail.com>
# * oberyno <oberyno@gmail.com>
# * Mamoru Komachi <usata@usata.org>
#
# ------------------------------------------------------------------------------
#<app-admin/eselect-1.0.11>
#
_eselect_env () {
if (( $words[(I)(update)] )); then
_values 'update options' \
'makelinks[force updating of links]' \
'noldconfig[Do not alter the ld.so cache or configuration]' && return 0
fi
_values 'env options' $stdopts[@] \
'update[Collect environment variables from all scripts]' && return 0
}
_eselect_binutils () {
local binutilslist
if (( $words[(I)(set)] )); then
binutilslist=(${${${(M)${(f)"$(eselect --no-color binutils list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values 'available binutils version' $binutilslist[@] && return 0
fi
_values 'binutils options' $stdopts[@] \
'list[List all installed version of binutils]' \
'show[Print the currently active binutils version]' \
'set[Activate one of the installed binutils]' && return 0
}
_eselect_kernel () {
local kernellist
if (( $words[(I)(set)] )); then
kernellist=(${${${(M)${(f)"$(eselect --no-color kernel list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values 'available kernel version' $kernellist[@] && return 0
fi
_values 'kenrel options' $stdopts[@] \
'list[List available kernel symlink targets]' \
'show[Show the current kernel symlink]' \
'set[Set a new kernel symlink target]' && return 0
}
_eselect_ctags () {
local ctagslist
if (( $words[(I)(set)] )); then
ctagslist=(${${${(M)${(f)"$(eselect --no-color ctags list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values 'available ctags version' $ctagslist[@] && return 0
fi
_values 'ctags options' $stdopts[@] \
'list[List available ctags symlink targets]' \
'show[Show the current target of the ctags symlink]' \
'update[Automatically update the ctags symlink]' \
'set[Set a new ctags symlink target]' && return 0
}
_eselect_profile () {
local profilelist
if (( $words[(I)(set)] )); then
profilelist=(${${${(M)${(f)"$(eselect --no-color profile list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values -w 'available profiles' $profilelist[@] \
'--force[Forcibly set the symlink]' && return 0
fi
_values 'profile options' $stdopts[@] \
'list[List available profile symlink targets]' \
'show[Show the current make.profile symlink]' \
'set[Set a new profile symlink target]' && return 0
}
_eselect_fontconfig () {
local fclistenabled fclistdisabled
if (( $words[(I)(enable)] )); then
fclistdisabled=(${${${${(M)${(f)"$(eselect --no-color fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/})
_values -w '.conf to enable' $fclistdisabled[@] && return 0
elif (( $words[(I)(disable)] )); then
fclistenabled=(${${${(M)${(M)${(f)"$(eselect --no-color fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/})
_values -w '.conf to disable' $fclistenabled[@] && return 0
fi
_values 'fontconfig options' $stdopts[@] \
'list[List available fontconfig .conf files]' \
'disable[Disable specified fontconfig .conf file(s)]' \
'enable[Enable specified fontconfig .conf file(s)]' && return 0
}
_eselect_opengl () {
local opengllist
if (( $words[(I)(set)] )); then
opengllist=(${${${(M)${(f)"$(eselect --no-color opengl list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values -w 'opengl implementations and options' $opengllist[@] \
'--use-old[If an implementationis already set, use that one instead]' \
'--prefix[Set the source prefix]:path:_files -/' \
'--dst-prefix[Set the destination prefix]:path:_files -/' \
'--impl-headers[Override global headers with ones provided by this profile]' && return 0
fi
_values 'opengl options' $stdopts[@] \
'list[List the available OpenGL implementations]' \
'set[Select the OpenGL implementation]' \
'show[Print the current OpenGL implementation]' && return 0
}
_eselect_vi () {
local vilist
if (( $words[(I)(set)] )); then
vilist=(${${${(M)${(f)"$(eselect --no-color vi list)"}## *}// \**/}//( \[*\] | \[*\] )/})
_values -w 'vi implementation' $vilist[@] && return 0
elif (( $words[(I)(update)] )); then
_values -w 'option' '--if-unset[Do not override existing implementation]' && return 0
fi
_values 'vi options' $stdopts[@] \
'list[List available vi implementations]' \
'set[Set a new vi implementation provider]' \
'show[Show the current vi implementation]' \
'update[Automatically update the vi provider]' && return 0
}
_eselect () {
local globopts sedcmd modnames modopts
local stdopts
stdopts=(
'help[Display help text]'
'usage[Display usage information]'
'version[Display version information]'
)
globopts=(
'--no-colour[Disable coloured output]'
'--no-color[Disable coloured output]'
)
modnames=(${${${(M)${(f)"$(eselect --no-color list-modules)"}## *}// */}// /})
if ((CURRENT == 2)); then
_arguments -s \
"$globopts[@]" \
"*:portage:_values 'eselect modules' \$modnames[@]" && return 0
elif ((CURRENT == 3)); then
if [[ $words[2] == --no-colour || $words[2] == --no-color ]]; then
_arguments -s \
"*:portage:_values 'eselect modules' \$modnames[@]" && return 0
elif (( $modnames[(I)$words[2]] )); then
if [[ "$words[2]" == (env|binutils|kernel|ctags|profile|fontconfig|opengl|vi) ]]; then
_eselect_$words[2] "$@"
else
modopts=(${${${(M)${(f)"$(eselect --no-color $words[2] usage)"}## *}// */}// /})
_arguments -s \
"*:portage:_values 'eselect $words[2] options' \$modopts[@]" && return 0
fi
fi
elif ((CURRENT >= 4)); then
if (( $words[(I)(--no-color|--no-colour)] )); then
if (( $modnames[(I)$words[3]] )); then
if [[ "$words[3]" == (env|binutils|kernel|ctags|profile|fontconfig|opengl|vi) ]]; then
_eselect_$words[3] "$@"
else
modopts=(${${${${(M)${(f)"$(eselect --no-color $words[3] usage)"}## *}// */}// /}// *})
_arguments -s \
"*:portage:_values 'eselect $words[3] options' \$modopts[@]" && return 0
fi
fi
else
if (( $modnames[(I)$words[2]] )); then
_eselect_$words[2] "$@"
fi
fi
fi
}
_eselect "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,5 +1,8 @@
#compdef bpython bpython2
#compdef exportfs
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
@ -25,28 +28,24 @@
# Description
# -----------
#
# Completion script for bpython (http://bpython-interpreter.org/).
# Completion script for nfs's exportfs - maintain table of exported NFS file systems.
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# * Timofey Titovets <nefelim4ag@gmail.com>
#
# ------------------------------------------------------------------------------
_arguments -A "-*" \
'(-h --help)'{-h,--help}'[Show help message]' \
'(-i --interactive)'{-i,--interactive}'[Drop to bpython shell after running file instead of exiting]' \
'(-q --quiet)'{-q,--quiet}"[Don't flush the output to stdout]" \
'(-V --version)'{-V,--version}'[Print version and exit]' \
'--config[Use CONFIG instead of default config file]:Config file:_files' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et
_exportfs() {
_values -w 'option' \
'(-i)-a[Export or unexport all directories]' \
'(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \
'(-i)-r[Reexport all directories]' \
'(-i)-u[Unexport one or more directories]' \
'-f[Flush everything out of export table]' \
'-o[option1,option2.. Specify a list of export options]' \
'-s[Display the current export list suitable for /etc/exports]' \
'-v[Be verbose]'
}
_exportfs "$@"

View File

@ -1,9 +1,34 @@
#compdef fab
# ------------------------------------------------------------------------------
# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Fabric (http://fabfile.org)
# Completion script for Fabric (https://www.fabfile.org/)
#
# Source: https://github.com/vhbit/fabric-zsh-autocomplete
#
@ -38,7 +63,7 @@ output_levels=(
_arguments -w -S -C \
'(-)'{-h,--help}'[show this help message and exit]: :->noargs' \
'(-)'{-V,--version}'[show program''s version number and exit]: :->noargs' \
'(-)'{-V,--version}'[show program'\''s version number and exit]: :->noargs' \
'(-)--list[print list of possible commands and exit]: :->noargs' \
'(-)--shortlist[print non-verbose list of possible commands and exit]: :->noargs' \
'(--reject-unknown-hosts)--reject-unknown-hosts[reject unknown hosts]' \
@ -50,13 +75,14 @@ _arguments -w -S -C \
'(-p+ --password=-)'{-p+,--password=-}'[password for use with authentication and/or sudo]: :' \
'(-H+ --hosts=-)'{-H+,--hosts=-}'[comma separated list of hosts to operate on]: :' \
'(-R+ --roles=-)'{-R+,--roles=-}'[comma separated list of roles to operate on]: :' \
'(-a --no-agent)'{-a,--no-agent}'[don''t use the running SSH agent]' \
'(-k --no-keys)'{-k,--no-keys}'[don''t load private key files from ~/.ssh/]' \
'(-a --no-agent)'{-a,--no-agent}'[don'\''t use the running SSH agent]' \
'(-k --no-keys)'{-k,--no-keys}'[don'\''t load private key files from ~/.ssh/]' \
'(-w --warn-only)'{-w,--warn-only}'[warn instead of abort, when commands fail]' \
'-i+[path to SSH private key file. May be repeated]: :_files' \
"(-f+ --fabfile=)"{-f+,--fabfile=}"[Python module file to import]: :_files -g *.py" \
'(-c+ --config=-)'{-c+,--config=-}'[specify location of config file to use]: :_files' \
'(-s+ --shell=-)'{-s+,--shell=-}'[specify a new shell, defaults to ''/bin/bash -l -c'']: :' \
'(--ssh-config-path=)--ssh-config-path=[ssh config path]: :_files' \
'(--hide=-)--hide=-[comma-separated list of output levels to hide]: :->levels' \
'(--show=-)--show=-[comma-separated list of output levels to show]: :->levels' \
'*::: :->subcmds' && return 0

339
src/_fail2ban-client Normal file
View File

@ -0,0 +1,339 @@
#compdef fail2ban-client
# ------------------------------------------------------------------------------
# Copyright (c) 2020 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for fail2ban-client (https://www.fail2ban.org/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Felix Neumärker <xdch47@posteo.de>
#
# ------------------------------------------------------------------------------
_f2bc_jails() {
LANG=C fail2ban-client status 2> /dev/null | sed -n -e 's/.*Jail list:\s\+//' -e 'T' -e 's/,\s\+/\'$'\n/g' -e 'p'
}
_complete_f2bc_cmds() {
local cmds=(
'unban:unbans all IP addresses'
'set:set property'
'get:get property'
'status:gets the current status of the server'
'reload:reloads the configuration/jails'
'restart:restarts the server'
'start:starts the server and the jails'
'stop:stops all jails and terminate the server'
'ping:tests if the server is alive'
'flushlogs:flushes the logtarget if a file and reopens it'
'help:return this output'
'version:return the server version'
)
_describe -V "fail2ban commands" cmds
}
_complete_f2bc_cmdargs() {
local f2barg="$words[$NORMARG]"
case "$f2barg" in
unban)
local jail
if (( $words[(I)(--all)] == 0 )) ; then
for jail in $(_f2bc_jails) ; do
_complete_f2bc_ips $jail
done
local unban_opts=(--all)
_describe -o "unban options" unban_opts
else
_nothing
fi
;;
(set|get))
if (( $NORMARG + 1 == $CURRENT )) ; then
_complete_f2bc_jails
_complete_f2bc_settings
else
_complete_f2bc_jail${f2barg}
fi
;;
status)
if (( $NORMARG + 1 == $CURRENT )) ; then
_complete_f2bc_jails
elif (( $NORMARG + 2 == $CURRENT )) ; then
_values "flavor" basic cymru
else
_nothing
fi
;;
esac
}
_complete_f2bc_jails() {
local jails=($(_f2bc_jails))
_describe -V "jails" jails
}
_complete_f2bc_ips() {
local ips=("${(@f)$(LANG=C fail2ban-client status $1 2> /dev/null | sed -n -e 's/^.*Banned IP list:\s\+//' -e 'T' -e 's/\s\+/\'$'\n/g' -e 'p')}")
if [[ -n "${ips[@]}" ]] ; then
_describe -t "f2b_jail_$1" -V "banned ips of jail $1" ips
else
_nothing
fi
}
_complete_f2bc_jailset() {
if (( $NORMARG + 2 == $CURRENT )) ; then
case $words[$NORMARG+1] in
loglevel)
local loglevel=(CRITICAL ERROR WARNING NOTICE INFO DEBUG TRACEDEBUG HEAVYDEBUG)
_describe -V "loglevel" loglevel ;;
logtarget)
local logtarget=(STDOUT STDERR SYSLOG)
_describe -V "logtarget" logtarget
_files ;;
syslogsocket)
local syslogsocket=(auto)
_describe -V "logtarget" syslogsocket
_files ;;
dbfile)
_files ;;
dbpurgeage)
_message "sets the max age in <SECONDS> that history of bans will be kept" ;;
*)
# jail
local jailsettings=(
unbanip
banip
action
addaction
addfailregex
addignoreip
addignoreregex
addjournalmatch
addlogpath
bantime
datepattern
delaction
delfailregex
delignoreip
delignorerexgex
deljournalmatch
dellogpath
findtime
idle
ignorecache
ignorecommand
ignoreself
logencoding
maxlines
maxretry
usedns
)
_describe -t "f2b_jail_setting" -V "jail setting" jailsettings ;;
esac
else
local jail="$words[$NORMARG+1]"
if (( $NORMARG + 3 == $CURRENT )) ; then
case $words[$NORMARG+2] in
unbanip)
_complete_f2bc_ips "$jail" ;;
delfailregex)
_complete_f2bc_regex fail "$jail" ;;
delignorerexgex)
_complete_f2bc_regex ignore "$jail" ;;
dellogpath)
local filelist=("${(@f)$(LANG=C fail2ban-client status $jail 2> /dev/null | sed -n -e 's/^.*File list:\s\+//' -e 'T' -e 's/\s\+/\'$'\n/g' -e 'p')}")
if [[ -n "${filelist[@]}" ]] ; then
_describe -t "f2b_filelist" -V "filelist of jail $1" filelist
else
_nothing
fi ;;
idle)
_values 'fail2ban idle' on off ;;
ignoreself)
_values 'fail2ban ignoreself' true false ;;
delignoreip)
local ignoreips=("${(@f)$(fail2ban-client get "$jail" ignoreip 2> /dev/null | sed -e 's/^[|`]-\s\+//p')}")
if [[ -n "${ignoreips[@]}" ]] ; then
_describe -t "f2b_ignoreip" -V "fail2ban ignored ips" ignoreips
else
_nothing
fi ;;
delaction|action)
_complete_f2bc_action "$jail" ;;
addlogpath)
_files ;;
*)
_message "No completion for ${words[NORMARG+2]}" ;;
esac
elif (( $NORMARG + 4 == $CURRENT )) ; then
case $words[$NORMARG+2] in
action)
_complete_f2bc_actionproperties "$jail" $words[$NORMARG+3] ;;
addaction)
_files ;;
*)
_nothing ;;
esac
else
_nothing
fi
fi
}
_complete_f2bc_jailget() {
if (( $NORMARG + 2 == $CURRENT )) ; then
case $words[$NORMARG+1] in
(loglevel|logtarget|syslogsocket|dbfile|dbpurgeage))
_nothing ;;
*)
# jail
local jailprops=(
logpath
logencoding
journalmatch
ignoreself
ignoreip
ignorecommand
failregex
ignoreregex
findtime
bantime
datepattern
usedns
maxretry
maxlines
actions
action
actionproperties
actionmethods
)
_describe -t "f2b_jail_props" -V "jail properties" jailprops ;;
esac
else
local jail="$words[$NORMARG+1]"
if (( $NORMARG + 3 == $CURRENT )) ; then
case $words[$NORMARG+2] in
(action|actionproperties|actionmethods))
_complete_f2bc_action "$jail" ;;
*)
_nothing ;;
esac
elif (( $NORMARG + 4 == $CURRENT )) ; then
case $words[$NORMARG+2] in
(action|actionproperties|actionmethods))
_complete_f2bc_actionproperties "$jail" $words[$NORMARG+3] ;;
*)
_nothing ;;
esac
else
_nothing
fi
fi
}
_complete_f2bc_action() {
local jailactions=("${(@f)$(fail2ban-client get $1 actions 2>/dev/null | sed -e '1d' -e 's/,\s\+/\'$'\n/g')}")
if [[ -n "${jailactions[@]}" ]] ; then
_describe -t "f2b_jail_actions" -V "jail actions" jailactions
else
_nothing
fi
}
_complete_f2bc_actionproperties() {
local default_actionproperties=(
actionstart
actionstop
actioncheck
actionban
actionunban
timeout
)
local all_actionproperties=("${(@f)$(fail2ban-client get $1 actionproperties $2 2>/dev/null | sed -e '1d' -e 's/,\s\+/\'$'\n/g')}")
local add_actionproperties=("${(@)all_actionproperties:|default_actionproperties}")
_describe -t "f2b_actions_defprops" -V "default action properties" default_actionproperties
if [[ -n "${add_actionproperties[@]}" ]] ; then
_describe -t "f2b_actions_remprops" -V "additional action properties" add_actionproperties
else
_nothing
fi
}
_complete_f2bc_regex() {
local regex=("${(@f)$(fail2ban-client get $2 ${1}regex 2> /dev/null | sed -n -e 's/[|`]- \[\([0-9]\+\)\]:\s\+/\1:/p')}")
if [[ -n "${regex[@]}" ]] ; then
_describe -t "f2b_regex" -V "jail $2 ${1}regex" regex
else
_nothing
fi
}
_complete_f2bc_settings() {
local setargs=(loglevel logtarget syslogsocket dbfile dbpurgeage)
_describe -t "f2b_settings" -V "fail2ban-client settings" setargs
}
integer NORMARG
_arguments -A "-*" -n \
'-c[configuration directory]:_files -/' \
'-s[socket path]:_files' \
'-p[pidfile path]:_files' \
'--loglevel[logging level]:(CRITICAL ERROR WARNING, NOTICE INFO, DEBUG, TRACEDEBUG HEAVYDEBUG)' \
'--logtarget[logging target]:(stdout stderr syslog sysout)' \
'--syslogsocket:_files' \
'-d[dump configuration]' \
'(--dp --dump-pretty)'{--dp,--dump-pretty}'[dump the configuration using more human readable representation]' \
'(-t --test)'{-t,--test}'[test configuration]' \
'-i[interactive mode]' \
'-v[increase verbosity]' \
'-q[decrease verbosity]' \
'-x[force execution of the server (remove socket file)]' \
'-b[start server in background]' \
'-f[start server in foreground]' \
'--str2sec[convert time abbreviation format to seconds]:_message str2sec' \
'(-h --help)'{-h,--help}'[display this help message]' \
'(-V --version)'{-V,--version}'[print the version]' \
'1:fail2ban command:_complete_f2bc_cmds' \
'*:fail2ban command argument:_complete_f2bc_cmdargs'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: set et sw=2 ts=2 ft=zsh:

57
src/_fail2ban-regex Normal file
View File

@ -0,0 +1,57 @@
#compdef fail2ban-regex
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for fail2ban-regex (https://www.fail2ban.org/).
# Environment:
# Linux 6.14.10-arch1-1 x86_64 GNU/Linux
# zsh 5.9 (x86_64-pc-linux-gnu)
# fail2ban 1.1.0-7
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Jesse Ayala <jesserayala95@gmail.com>
#
# ------------------------------------------------------------------------------
integer NORMARG
_arguments -A "-*" -n \
'--version[show program''s version number]' \
'(-h --help)'{-h,--help}'[display the help message]' \
'(-c --config)'{-c,--config=}'[set alternate config directory]:directory:_files -/' \
'(-d --datepattern)'{-d,--datepattern=}'[set custom pattern used to match date/times]:DATEPATTERN' \
'(--timezone= --TZ=)'{--timezone=,--TZ=}'[set time-zone used by convert time format]:TIMEZONE' \
'(-e --encoding=)'{-e,--encoding=}'[use different encoding from system locale]:ENCODING' \
'(-r --raw)'{-r,--raw}'[raw hosts,don''t resolve dns]' \
'--usedns=[DNS specified replacement of tags <HOST> in regexp]::((yes\:matches all form of hosts no\:IP addresses only))' \
'(-L --maxlines=)'{-L,--maxlines}'[maxlines for multi-line regex]:MAXLINES' \
'(-m --journalmatch=)'{-m,--journalmatch=}'[journalctl style matches overriding filter file; "systemd-journal" only]:JOURNALMATCH' \
'(-l --log-level=)'{-l,--log-level}'[log level for the Fail2Ban logger to use]:LOG_LEVEL' \
'-V[get version in machine-readable short format]' \
'--verbosity=[set numerical level of verbosity]:(0 1 2 3 4)' \
'(--verbose-date --VD)'{--verbose-date,--VD}'[verbose date patterns/regex in output]' \
'(-D --debuggex)'{-D,--debuggex}'[produce debuggex.com urls for debugging there]' \
'--no-check-all[disable check for all regexes]' \
'(-o --out)'{-o,--out}'[set token to print failure information only (row, id, ip, msg, host, ip4, ip6, dns, matches, ...)]:out' \
'--print-no-missed[do not print any missed lines]' \
'--print-no-ignored[do not print any ignored lines]' \
'--print-all-matched[print all matched lines]' \
'--print-all-missed[print all missed lines, no matter how many]' \
'--print-all-ignored[print all ignored lines, no matter how many]' \
'(-t --log-traceback)'{-t,--log-traceback}'[enrich log-messages with compressed tracebacks]' \
'--full-traceback[enrich log-messages with full, uncompressed tracebacks]:' \
'1:file:_files -g \*.log' \
'2:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)' \
'3:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: set et sw=2 ts=2 ft=zsh:

61
src/_fallocate Normal file
View File

@ -0,0 +1,61 @@
#compdef fallocate
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion for fallocate, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - preallocate or deallocate space to a file
# https://man7.org/linux/man-pages/man1/fallocate.1.html
# ------------------------------------------------------------------------------
# Authors
# -------
# * Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments \
'(-c --collapse-range)'{-c,--collapse-range}'[Removes a byte range from a file without leaving a hole]' \
'(-d --dig-holes)'{-d,--dig-holes}'[Detect and dig holes]' \
'(-i --insert-range)'{-i,--insert-range}'[Insert a hole of length bytes from offset]' \
'(-l --length)'{-l+,--length}'[Specifies the length of the range, in bytes]:bytes' \
'(-n --keep-size)'{-n,--keep-size}'[Do not modify the apparent length of the file]' \
'(-o --offset)'{-o+,--offset}'[Specifies the beginning offset of the range, in bytes]:offset' \
'(-p --punch-hole)'{-p,--punch-hole}'[Deallocates space in the byte range starting at offset and continuing for length bytes]' \
'(-v --verbose)'{-v,--verbose}'[Enable verbose mode]' \
'(-x --posix)'{-p,--posix}'[Enable POSIX operation mode]' \
'(-z --zero-range)'{-z,--zero-range}'[Zeroes space in the byte range starting at offset and continuing for length bytes]' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \
'*:filename:_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

62
src/_ffind Normal file
View File

@ -0,0 +1,62 @@
#compdef ffind
# ------------------------------------------------------------------------------
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ffind (https://github.com/jaimebuelta/ffind).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Sergei Eremenko (https://github.com/SmartFinn)
#
# ------------------------------------------------------------------------------
_arguments -C \
'(-h --help)'{-h,--help}'[show help message and exit]' \
'--version[show version number and exit]' \
'-p[match whole path, not only name of files]' \
'--nocolor[do not display color]' \
'--nosymlinks[do not follow symlinks]' \
'--hidden[do not ignore hidden directories]' \
'-c[force case sensitive]' \
'-i[force case insensitive]' \
'--delete[delete files found]' \
'--exec[execute the given command with the file found]:command:_command_names' \
'--module[execute the given module with the file found]:module_name args:' \
'--command[execute the given python program with the file found]:program:_files' \
'--ignore-vcs[ignore version control system files and directories]' \
'-f[experimental fuzzy search]' \
'--return-results[for testing purposes only]' \
'1:directory to search:_path_files -/' \
'*:filepattern:'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

123
src/_fleetctl Normal file
View File

@ -0,0 +1,123 @@
#compdef fleetctl
# ------------------------------------------------------------------------------
# Copyright (c) 2009-2015 Robby Russell and contributors (see
# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for fleetctl (https://github.com/coreos/fleet).
#
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Remi Paulmier (https://github.com/shtouff)
#
# ------------------------------------------------------------------------------
# fleetctl zsh completion
local -a _1st_arguments
_1st_arguments=(
'cat:Output the contents of a submitted unit'
'destroy:Destroy one or more units in the cluster'
'fd-forward:Proxy stdin and stdout to a unix domain socket'
'help:Show a list of commands or help for one command'
'journal:Print the journal of a unit in the cluster to stdout'
'list-machines:Enumerate the current hosts in the cluster'
'list-unit-files:List the units that exist in the cluster.'
'list-units:List the current state of units in the cluster'
'load:Schedule one or more units in the cluster, first submitting them if necessary.'
'ssh:Open interactive shell on a machine in the cluster'
'start:Instruct systemd to start one or more units in the cluster, first submitting and loading if necessary.'
'status:Output the status of one or more units in the cluster'
'stop:Instruct systemd to stop one or more units in the cluster.'
'submit:Upload one or more units to the cluster without starting them'
'unload:Unschedule one or more units in the cluster.'
'version:Print the version and exit'
)
__task_list ()
{
local expl
declare -a tasks
tasks=(cat destroy fd-forward help journal list-machines list-unit-files \
list-units load ssh start status stop submit unload version)
_wanted tasks expl 'help' compadd $tasks
}
__unit_list ()
{
_wanted application expl 'command' compadd $(command fleetctl list-units | \
tail -n +2 | awk '{print $1}')
}
local expl
local curcontext="$curcontext" state line
local -A opt_args
_arguments -C \
':command:->command' \
'*::options:->options'
case $state in
(command)
_describe -t commands "gem subcommand" _1st_arguments
return
;;
(options)
case $line[1] in
(help)
_arguments ':feature:__task_list'
;;
(destroy|journal|start|status|stop|unload|cat)
_arguments '*:feature:__unit_list'
;;
(load|submit)
_arguments '*:file:_files -g *.service'
;;
(ssh)
_arguments '*:host:_hosts'
;;
(*)
_arguments '*:file:_files'
;;
esac
;;
esac
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

1122
src/_flutter Normal file

File diff suppressed because it is too large Load Diff

179
src/_fwupdmgr Normal file
View File

@ -0,0 +1,179 @@
#compdef fwupdmgr
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for fwupdmgr 1.8.12 (https://github.com/hughsie/fwupd).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
# * Shohei Yoshida (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_fwupdmgr() {
local context state state_descr line
typeset -A opt_args
local ret=1
_arguments -C \
'(- : *)'{-h,--help}'[display help information]' \
'(- : *)'{-v,--version}'[display version information]' \
{-v,--verbose}'[show extra debugging information]' \
--offline'[schedule installation for next reboot when possible]' \
--allow-reinstall'[allow re-installing existing firmware versions]' \
--allow-older'[allow downgrading firmware versions]' \
--allow-branch-switch'[allow switching firmware branch]' \
--force'[override warnings and force the action]' \
'(-y, --assume-yes)'{-y,--assume-yes}'[answer yes to all questions]' \
--sign'[sign the uploaded data with the client certificate]' \
--no-unreported-check'[do not check for unreported history]' \
--no-metadata-check'[do not check for old metadata]' \
--no-reboot-check'[do not check for reboot after update]' \
--no-safety-check'[do not perform device safety checks]' \
--no-device-prompt'[do not prompt for devices]' \
--no-history'[do not write to the history database]' \
--show-all'[show all results]' \
--disable-ssl-strict'[ignore SSL strict checks when downloading files]' \
--ipfs'[only use IPFS when downloading files]' \
--filter'[filter with a set of device flags using a ~ prefix to exclude]:filter' \
--json'[output in JSON format]' \
--no-authenticate'[do not prompt for authentication]' \
'(-): :->command' \
'(-)*:: :->arguments' \
&& ret=0
case $state in
(command)
_fwupdmgr_commands
;;
(arguments)
case $words[1] in
(activate|downgrade|emulation-tag|emulation-untag|get-releases|get-updates|reinstall|update|verify|verify-update)
_arguments \
'1::device_id or GUID:_fwupdmgr_device_ids' \
&& ret=0
;;
(clear-results|get-results|unlock)
_arguments \
'1:device_id or GUID:_fwupdmgr_device_ids' \
&& ret=0
;;
(device-emulate|device-test|emulation-load|emulation-save|get-details|set-approved-firmware)
_arguments \
'*::files:_files' \
&& ret=0
;;
(disable-remote|modify-remote)
_arguments \
'1:remote ID:_fwupdmgr_remote_ids' \
&& ret=0
;;
(install)
_arguments \
'1:device_id or GUID:_fwupdmgr_device_ids' \
'2:version' \
&& ret=0
;;
(local-install)
_arguments \
'1:file:_files' \
'2:device_id or GUID:_fwupdmgr_device_ids' \
&& ret=0
;;
(refresh)
_arguments \
'1:file or remote ID:_alternative _files _fwupdmgr_remote_ids' \
&& ret=0
;;
(switch-branch)
_arguments \
'1:device_id or GUID:_fwupdmgr_device_ids' \
'2:branch' \
&& ret=0
;;
esac
;;
esac
return ret
}
(( $+functions[_fwupdmgr_commands] )) ||
_fwupdmgr_commands() {
local -a commands=(
'activate:activate devices'
'block-firmware:blocks a specific firmware from being installed'
'clear-results:clears the results from the last update'
'device-emulate:emulate a device using a JSON manifest'
'device-test:test a device using a JSON manifest'
'disable-remote:disables a given remote'
'downgrade:downgrades the firmware on a device'
'emulation-load:load device emulation data'
'emulation-save:save device emulation data'
'emulation-tag:adds devices to watch for future emulation'
'emulation-untag:removes devices to watch for future emulation'
'enable-remote:enables a given remote'
'get-approved-firmware:gets the list of approved firmware'
'get-bios-settings:retrieve BIOS settings'
'get-blocked-firmware:gets the list of blocked firmware'
'get-details:gets details about a firmware file'
'get-devices:get all devices that support firmware updates'
'get-history:show history of firmware updates'
'get-plugins:get all enabled plugins registered with the system'
'get-releases:gets the releases for a device'
'get-remotes:gets the configured remotes'
'get-results:gets the results from the last update'
'get-topology:get all devices according to the system topology'
'get-updates:gets the list of updates for connected hardware'
'inhibit:inhibit the system to prevent upgrades'
'install:install a firmware file on this hardware'
'local-install:install a firmware file on this hardware'
'modify-config:modifies a daemon configuration value'
'modify-remote:modifies a given remote'
'quit:asks the daemon to quit'
'refresh:refresh metadata from remote server'
'security:gets the host security attributes'
'report-history:share firmware history with the developers'
'set-approved-firmware:sets the list of approved firmware'
'set-bios-setting:sets one or more BIOS settings'
'switch-branch:switch the firmware branch on device'
'sync-bkc:sync firmware versions to the host best known configuration '
'unblock-firmware:unblocks a specific firmware from being installed'
'uninhibit:uninhibit the system to allow upgrades'
'unlock:unlocks the device for firmware access'
'update:updates all firmware to latest versions available'
'verify:gets the cryptographic hash of the dumped firmware'
'verify-update:update the stored metadata with current ROM contents'
)
_describe -t commands commands commands
}
(( $+functions[_fwupdmgr_device_ids] )) ||
_fwupdmgr_device_ids() {
# TODO add device name as description
local -a devices
devices=($(_call_program devices fwupdmgr get-devices | awk '/Device ID/||/DeviceId/{print $NF}'))
_describe -t devices 'device ID' devices
}
(( $+functions[_fwupdmgr_remote_ids] )) ||
_fwupdmgr_remote_ids() {
# TODO add remote description
local -a remotes
remotes=($(_call_program remotes fwupdmgr get-remotes | awk '/Remote ID/{print $NF}'))
_describe -t remotes 'remote ID' remotes
}
_fwupdmgr "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,5 +1,26 @@
#compdef gas
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#

View File

@ -1,73 +0,0 @@
#compdef geany
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Geany (http://www.geany.org).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# ------------------------------------------------------------------------------
_arguments \
'(- 1 *)'{-h,--help}'[Show help options]' \
'(- 1 *)--help-all[Show all help options]' \
'(- 1 *)--help-gtk[Show GTK+ Options]' \
'(- 1 *)'{-V,--version}'[Show version and exit]' \
'(--column)--column[Set initial column number for the first opened file (useful in conjunction with --line)]:column number' \
'(-c --config)'{-c,--config}'[Use an alternate configuration directory]:configuration file:_files' \
'(--ft-names)--ft-names[Print internal filetype names]' \
'(-g --generate-tags)'{-g,--generate-tags}'[Generate global tags file (see documentation)]' \
'(-P --no-preprocessing)'{-P,--no-preprocessing}'[Don'\''t preprocess C/C++ files when generating tags]' \
'(-i --new-instance)'{-i,--new-instance}'[Don'\''t open files in a running instance, force opening a new instance]' \
'(--socket-file)--socket-file[Use this socket filename for communication with a running Geany instance]:socket file:_files' \
'(--list-documents)--list-documents[Return a list of open documents in a running Geany instance]' \
'(-l --line)'{-l,--line}'[Set initial line number for the first opened file]:line number' \
'(-m --no-msgwin)'{-m,--no-msgwin}'[Don'\''t show message window at startup]' \
'(-n --no-ctags)'{-n,--no-ctags}'[Don'\''t load auto completion data (see documentation)]' \
'(-p --no-plugins)'{-p,--no-plugins}'[Don'\''t load plugins]' \
'(--print-prefix)--print-prefix[Print Geany'\''s installation prefix]' \
'(-s --no-session)'{-s,--no-session}'[Don'\''t load the previous session'\''s files]' \
'(-t --no-terminal)'{-t,--no-terminal}'[Don'\''t load terminal support]' \
'(--vte-lib)--vte-lib[Filename of libvte.so]:libvte.so filename:_files -g "*.so"' \
'(-v --verbose)'{-v,--verbose}'[Be verbose]' \
'(--display)--display[X display to use]:X display:_x_display' \
'*: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

461
src/_gem
View File

@ -1,461 +0,0 @@
#compdef gem gem1.9
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for gem (http://rubygems.org).
#
# Source: https://gist.github.com/164465
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Alex Vollmer (https://github.com/alexvollmer)
#
# ------------------------------------------------------------------------------
_gem() {
local -a gem_general_flags
gem_general_flags=("(-h --help)"{-h,--help}"[Get help on this command]"
"(-V --verbose)"{-V,--verbose}"[Set the verbose level of output]"
"(-q --quiet)"{-q,--quiet}"[Silence commands]"
"--config-file[Use this config file instead of default]:file:_files"
"--backtrace[Show stack backtrace on errors]"
"--debug[Turn on Ruby debugging]"
$nul_arg
)
if (( CURRENT > 2 )); then
(( CURRENT-- ))
shift words
_call_function 1 _gem_${words[1]}
else
_values "gem command" \
"build[Build a gem from a gemspec]" \
"cert[Manage RubyGems certificates and signing settings]" \
"check[Check installed gems]" \
"cleanup[Clean up old versions of installed gems in the local repository]" \
"contents[Display the contents of the installed gems]" \
"dependency[Show the dependencies of an installed gem]" \
"environment[Display information about the RubyGems environment]" \
"fetch[Download a gem and place it in the current directory]" \
"generate_index[Generates the index files for a gem server directory]" \
"help[Provide help on the 'gem' command]" \
"install[Install a gem into the local repository]" \
"list[Display gems whose name starts with STRING]" \
"lock[Generate a lockdown list of gems]" \
"mirror[Mirror a gem repository]" \
"outdated[Display all gems that need updates]" \
"pristine[Restores installed gems to pristine condition from files located in the gem cache]" \
"query[Query gem information in local or remote repositories]" \
"rdoc[Generates RDoc for pre-installed gems]" \
"search[Display all gems whose name contains STRING]" \
"server[Documentation and gem repository HTTP server]" \
"sources[Manage the sources and cache file RubyGems uses to search for gems]" \
"specification[Display gem specification (in yaml)]" \
"stale[List gems along with access times]" \
"uninstall[Uninstall gems from the local repository]" \
"unpack[Unpack an installed gem to the current directory]" \
"update[Update the named gems (or all installed gems) in the local repository]" \
"which[Find the location of a library file you can require]"
fi
}
__all_gems() {
_gem_names=($(${service} list | awk '{print $1}'))
compadd "$@" -k _gem_names
}
__all_gems_all() {
_gem_names=($(gem list | awk '{print $1}') "--all")
compadd "$@" -k _gem_names
}
__gem_help_arguments() {
_args=("commands"
"examples"
"build"
"cert"
"check"
"cleanup"
"contents"
"dependency"
"environment"
"fetch"
"generate_index"
"help"
"install"
"list"
"lock"
"mirror"
"outdated"
"pristine"
"query"
"rdoc"
"search"
"server"
"sources"
"specification"
"stale"
"uninstall"
"unpack"
"update"
"which")
compadd "$@" -k _args
}
__gem_trust_policies() {
_args=("NoSecurity"
"LowSecurity"
"MediumSecurity"
"HighSecurity")
compadd "$@" -k _args
}
_gem_build() {
_arguments \
'*:file:_files -g "*.gemspec"' \
$gem_general_flags && ret=0
}
_gem_cert() {
_arguments \
"(-a --add)"{-a,--add}"[Add a trusted certificate.]":file:_files \
"(-l --list)"{-l,--list}"[List trusted certificates.]" \
"(-r --remove)"{-r,--remove}"[Remove trusted certificates containing STRING.]" \
"(-b --build)"{-b,--build}"[Build private key and self-signed certificate for EMAIL_ADDR.]" \
"(-C --certificate)"{-C,--certificate}"[Certificate for --sign command.]":file:_files \
"(-K --private-key)"{-K,--private-key}"[Private key for --sign command.]":file:_files \
"(-s --sign)"{-s,--sign}"[Sign a certificate with my key and certificate.]":file:_files \
$gem_general_flags && ret=0
}
_gem_check() {
_arguments \
"--verify[Verify gem file against its internal checksum]":file:_files \
"(-a --alien)"{-a,--alien}"[Report 'unmanaged' or rogue files in the gem repository]" \
"(-v --verbose)"{-v,--verbose}"[Spew more words]" \
"(-t --test)"{-t,--test}"[Run unit tests for gem]" \
"(-v --version)"{-v,--version}"[Specify version of gem to run tests for]" \
$gem_general_flags && ret=0
}
_gem_cleanup() {
_arguments \
"*:gemname:__all_gems" \
"(-d --dryrun)"{-d,--dryrun}"[]" \
$gem_general_flags && ret=0
}
_gem_contents() {
_arguments \
"*:gemname:__all_gems" \
"(-v --version)"{-v,--version}"[Specify version of gem to contents]" \
"--all[Contents for all gems]" \
"(-s --spec-dir)"{-s,--spec-dir}"[Search for gems under specific paths]" \
"(-l --no-lib-only)"{-l,--no-lib-only}"[Only return files in the Gem's lib_dirs]" \
"--no-prefix[Don't include installed path prefix]" \
$gem_general_flags && ret=0
}
_gem_dependency() {
_arguments \
":gemname:__all_gems" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
"(-v --version)"{-v,--version}"[Specify version of gem to dependency]" \
"--platform[Specify the platform of gem to dependency]" \
"(-R --no-reverse-dependencies)"{-R,--no-reverse-dependencies}"[Include reverse dependencies in the output]" \
"(-p --pipe)"{-p,--pipe}"[Pipe Format (name --version ver)]" \
$gem_general_flags && ret=0
}
_gem_environment() {
typeset -g _environment_arg=
_environment_arg='::environment:((packageversion\:"display the package version"
gemdir\:"display the path where gems are installed"
gempath\:"display path used to search for gems"
version\:"display the gem format version"
remotesources\:"display the remote gem servers"))'
_arguments \
$_environment_arg \
$gem_general_flags && ret=0
}
_gem_fetch() {
_arguments \
"*:gemname:__all_gems" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"--source[Use URL as the remote source for gems]" \
"(-v --version)"{-v,--version}"[Specify version of gem to fetch]" \
"--platform[Specify the platform of gem to fetch]" \
$gem_general_flags && ret=0
}
_gem_generate_index() {
_arguments \
"(-d --directory=DIRNAME)"{-d,--directory=-}"[repository base dir containing gems subdir]":directory:_directories \
"--no-legacy[Generate indexes for RubyGems older than 1.2.0]" \
"--no-modern[Generate indexes for RubyGems newer than 1.2.0]" \
"--update[Update modern indexes with gems added since the last update]" \
"--rss-gems-host=-[Host name where gems are served from, used for GUID and enclosure values]" \
"--rss-host=-[Host name for more gems information, used for RSS feed link]" \
"--rss-title=-[Set title for RSS feed]" \
$gem_general_flags && ret=0
}
_gem_help() {
_arguments \
":argument:__gem_help_arguments" \
$gem_general_flags && ret=0
}
_gem_install() {
_arguments \
"*:URI: _alternative 'files:file:_files -g *.gem' 'urls:URL:__all_gems'" \
"(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \
"(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \
"(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \
"--no-ri[Generate RI documentation for the gem on install]" \
"(-E --no-env-shebang)"{-E,--no-env-shebang}"[Rewrite the shebang line on installed scripts to use /usr/bin/env]" \
"(-f --no-force)"{-f,--no-force}"[Force gem to install, bypassing dependency checks]" \
"(-t --no-test)"{-t,--no-test}"[Run unit tests prior to installation]" \
"(-w --no-wrappers)"{-w,--no-wrappers}"[Use bin wrappers for executables Not available on dosish platforms]" \
"(-P --trust-policy)"{-P,--trust-policy}"[Specify gem trust policy]:trust policy:__gem_trust_policies" \
"--ignore-dependencies[Do not install any required dependent gems]" \
"(-y --include-dependencies)"{-y,--include-dependencies}"[Unconditionally install the required dependent gems]" \
"--no-format-executable[Make installed executable names match ruby. If ruby is ruby18, foo_exec will be foo_exec18]" \
"--no-user-install[Install in user's home directory instead of GEM_HOME. Defaults to using home only if GEM_HOME is not writable.]" \
"--development[Install any additional development dependencies]" \
"--prerelease[Install prerelease versions of a gem if available. Defaults to skipping prereleases.]" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
"--platform[Specify the platform of gem to install]" \
"(-v --version)"{-v,--version}"[Specify version of gem to install]" \
$gem_general_flags && ret=0
}
_gem_list() {
_arguments \
":gem name: " \
"(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
"(-v --version)"{-v,--version}"[Specify version of gem to list]" \
"(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
"--no-versions[Display only gem names]" \
"(-a --all)"{-a,--all}"[Display all gem versions]" \
"--prerelease[Display prerelease versions]" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
$gem_general_flags && ret=0
}
_gem_lock() {
_arguments \
":gemname:__all_gems" \
"(-s --no-strict)"{-s,--no-strict}"[fail if unable to satisfy a dependency]" \
$gem_general_flags && ret=0
}
_gem_mirror() {
_arguments \
$gem_general_flags && ret=0
}
_gem_outdated() {
_arguments \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
"--platform[Specify the platform of gem to outdated]" \
$gem_general_flags && ret=0
}
_gem_pristine() {
_arguments \
":gem name:__all_gems_all" \
"--all[Restore all installed gems to pristine condition]" \
"(-v --version)"{-v,--version}"[Specify version of gem to restore to pristine condition]" \
$gem_general_flags && ret=0
}
_gem_query() {
_arguments \
"(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
"(-v --version)"{-v,--version}"[Specify version of gem to query]" \
"(-n --name-matches)"{-n,--name-matches}"[Name of gem(s) to query on matches the provided REGEXP]" \
"(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
"--no-versions[Display only gem names]" \
"(-a --all)"{-a,--all}"[Display all gem versions]" \
"--prerelease[Display prerelease versions]" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
$gem_general_flags && ret=0
}
_gem_rdoc() {
_arguments \
":gem name:__all_gems_all" \
"--all[Generate RDoc/RI documentation for all installed gems]" \
"--no-rdoc[Include RDoc generated documents]" \
"--no-ri[Include RI generated documents]" \
"(-v --version)"{-v,--version}"[Specify version of gem to rdoc]" \
$gem_general_flags && ret=0
}
_gem_search() {
_arguments \
":gem name::" \
"(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
"(-v --version)"{-v,--version}"[Specify version of gem to search]" \
"(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
"--no-versions[Display only gem names]" \
"(-a --all)"{-a,--all}"[Display all gem versions]" \
"--prerelease[Display prerelease versions]" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
$gem_general_flags && ret=0
}
_gem_server() {
_arguments \
"(-p --port=PORT)"{-p,--port=-}"[port to listen on]" \
"(-d --dir=GEMDIR)"{-d,--dir=-}"[directory from which to serve gems]":directory:_directories \
"--no-daemon[run as a daemon]" \
$gem_general_flags && ret=0
}
_gem_sources() {
_arguments \
"(-a --add)"{-a,--add}"[Add source]" \
"(-l --list)"{-l,--list}"[List sources]" \
"(-r --remove)"{-r,--remove}"[Remove source]" \
"(-c --clear-all)"{-c,--clear-all}"[Remove all sources (clear the cache)]" \
"(-u --update)"{-u,--update}"[Update source cache]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
$gem_general_flags && ret=0
}
_gem_specification() {
_arguments \
":gemname:__all_gems" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
"(-v --version)"{-v,--version}"[Specify version of gem to examine]" \
"--platform[Specify the platform of gem to specification]" \
"--all[Output specifications for all versions of the gem]" \
"--ruby[Output ruby format]" \
"--yaml[Output RUBY format]" \
"--marshal[Output Marshal format]" \
$gem_general_flags && ret=0
}
_gem_stale() {
_arguments \
$gem_general_flags && ret=0
}
_gem_uninstall() {
_arguments \
"*:gemname:__all_gems" \
"(-a --no-all)"{-a,--no-all}"[Uninstall all matching versions]" \
"(-I --no-ignore-dependencies)"{-I,--no-ignore-dependencies}"[Ignore dependency requirements while uninstalling]" \
"(-x --no-executables)"{-x,--no-executables}"[Uninstall applicable executables without confirmation]" \
"(-i --install-dir)"{-i,--install-dir}"[Directory to uninstall gem from]":directory:_directories \
"(-n --bindir)"{-n,--bindir}"[Directory to remove binaries from]":directory:_directories \
"--no-user-install[Uninstall from user's home directory in addition to GEM_HOME.]" \
"(-v --version)"{-v,--version}"[Specify version of gem to uninstall]" \
"--platform[Specify the platform of gem to uninstall]" \
$gem_general_flags && ret=0
}
_gem_unpack() {
_arguments \
":gemname:__all_gems" \
"--target=-[target directory for unpacking]":directory:_directories \
"(-v --version)"{-v,--version}"[Specify version of gem to unpack]" \
$gem_general_flags && ret=0
}
_gem_update() {
_arguments \
"*:gemname:__all_gems" \
"(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \
"(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \
"(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \
"--no-ri[Generate RI documentation for the gem on install]" \
"(-E --no-env-shebang)"{-E,--no-env-shebang}"[Rewrite the shebang line on installed scripts to use /usr/bin/env]" \
"(-f --no-force)"{-f,--no-force}"[Force gem to install, bypassing dependency checks]" \
"(-t --no-test)"{-t,--no-test}"[Run unit tests prior to installation]" \
"(-w --no-wrappers)"{-w,--no-wrappers}"[Use bin wrappers for executables Not available on dosish platforms]" \
"(-P --trust-policy)"{-P,--trust-policy}"[Specify gem trust policy]:trust policy:__gem_trust_policies" \
"--ignore-dependencies[Do not install any required dependent gems]" \
"(-y --include-dependencies)"{-y,--include-dependencies}"[Unconditionally install the required dependent gems]" \
"--no-format-executable[Make installed executable names match ruby. If ruby is ruby18, foo_exec will be foo_exec18]" \
"--no-user-install[Install in user's home directory instead of GEM_HOME. Defaults to using home only if GEM_HOME is not writable.]" \
"--development[Install any additional development dependencies]" \
"--prerelease[Install prerelease versions of a gem if available. Defaults to skipping prereleases.]" \
"(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
"(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
"(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
"(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
"--source[Use URL as the remote source for gems]" \
"(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
"(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
"--system[Update the RubyGems system software]" \
"--platform[Specify the platform of gem to update]" \
$gem_general_flags && ret=0
}
_gem_which() {
_arguments \
*:file:_files -f \
"(-a --no-all)"{-a,--no-all}"[show all matching files]" \
"(-g --no-gems-first)"{-g,--no-gems-first}"[search gems before non-gems]" \
$gem_general_flags && ret=0
}
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,155 +0,0 @@
#compdef genlop
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for GenLop (Gentoo Installation log parser).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vadim A. Misbakh-Soloviov <mva@mva.name>
# * Bapt <bapt@tuxfamily.org>
# * kaworu <kaworu@kaworu.ch>
# * David Durrleman <dualmoo@gmail.com>
# * oberyno <oberyno@gmail.com>
# * Mamoru Komachi <usata@usata.org>
#
# ------------------------------------------------------------------------------
#<app-portage/genlop-0.30.8>
_genlop () {
local prev1="$words[CURRENT-1]" prev2="$words[CURRENT-2]" days months arg single state lstate
days=(monday tuesday wednesday thursday friday saturday sunday)
months=(january february march april may june july august september october november december)
arg=( --current -c --time -t --gmt -g --info -i --file -f --rsync -r --unmerge -u --date --search -s --list -l )
single=( --current -c --pretend -p --help -h --version -v )
[[ ${prev2} == (1st|2nd|3rd|4th|5th) ]] &&
compadd in\ $months && return 0
[[ ${prev1} == ([2-9]|[1-9][0-9]*) && ${prev2} != \
(january|february|march|april|may|june|july|august|september|october|november|december) ]] &&
_values '' 'days ago' 'months ago' 'years ago' 'weeks ago' && return 0
[[ ${prev1} == (1) && ${prev2} != \
(january|february|march|april|may|june|july|august|september|october|november|december) ]] &&
_values '' 'day ago' 'month ago' 'year ago' 'week ago' && return 0
case "$prev1" in
last)
_values '' month week
compadd $days && return 0
;;
1st|2nd|3rd|4th|5th)
compadd $days && return 0
;;
january|february|march|april|may|june|july|august|september|october|november|december)
compadd {1..31} && return 0
;;
--date)
_message 'enter number for more options or use mm/dd/yyyy format'
_values '' \
last yesterday 1st 2nd 3rd 4th 5th
_alternative \
'*:*:_genlop_days' '*:*:_genlop_months' && return 0
;;
--file|-f)
_arguments '*:logfile:_files' && return 0
;;
*)
_arguments \
"($single $arg *)"{--current,-c}"[display the current merge in action]" \
"($single)*--date[specify date of event]:date:->date" \
"($single)*-f[specify the logfile to use]:logfile:_files" \
"($single --gmt -g)"{--gmt,-g}"[display time in GMT/UTC format (default is local time)]" \
"($single $arg *)"{--help,-h}"[display help information]" \
"($single --info -i --list -l)"{--info,-i}"[print brief summary about installed ebuild]" \
"($single --search -s --info -i --list -l *)"{--list,-l}"[list merge history]" \
"(--nocolor -n)"{--nocolor,-n}"[disable colored output]" \
"($single $arg *)"{--pretend,-p}"[estimate build time of a piped emerge -p]" \
"($single --search -s --info -i --time -t --unmerge -u --rsync -r *)"{--rsync,-r}"[display rsync history]" \
"($single --rsync -r --search -s --list -l *)"{--search,-s}"[select ebuilds matching the provided regular expression]:pattern:" \
"($single --time -t)"{--time,-t}"[display merge time]" \
"($single --rsync -r --unmerge -u)"{--unmerge,-u}"[display when packages have been unmerged]" \
"($single $arg *)"{--version,-v}"[display version information]" \
"($single)*:package:_gentoo_packages available"
;;
esac
while [[ -n "$state" ]]; do
lstate=$state
state=''
case "$lstate" in
date) _message 'enter number for more options or use mm/dd/yyyy format'
_values '' \
last yesterday 1st 2nd 3rd 4th 5th
_alternative \
':*:_genlop_days' ':*:_genlop_months' && return 0
;;
esac
done
}
_genlop_days() {
local m="monday" t="tuesday" w="wednesday" T="thursday" f="friday" s="saturday" S="sunday"
local day=$(date +%u)
if [[ ${day} == 1 ]] then compadd $m
elif [[ ${day} == 2 ]] then compadd $m $t
elif [[ ${day} == 3 ]] then compadd $m $t $w
elif [[ ${day} == 4 ]] then compadd $m $t $w $T
elif [[ ${day} == 5 ]] then compadd $m $t $w $T $f
elif [[ ${day} == 6 ]] then compadd $m $t $w $T $f $s
elif [[ ${day} == 7 ]] then compadd $m $t $w $T $f $s $S
fi
}
_genlop_months() {
local j="january" f="february" m="march" a="april" M="may" ju="june" J="july" A="august" s="september" o="october" n="november" d="december"
local month=$(date +%m)
if [[ ${month} == 01 ]] then compadd $j
elif [[ ${month} == 02 ]] then compadd $j $f
elif [[ ${month} == 03 ]] then compadd $j $f $m
elif [[ ${month} == 04 ]] then compadd $j $f $m $a
elif [[ ${month} == 05 ]] then compadd $j $f $m $a $M
elif [[ ${month} == 06 ]] then compadd $j $f $m $a $M $ju
elif [[ ${month} == 07 ]] then compadd $j $f $m $a $M $ju $J
elif [[ ${month} == 08 ]] then compadd $j $f $m $a $M $ju $J $A
elif [[ ${month} == 09 ]] then compadd $j $f $m $a $M $ju $J $A $s
elif [[ ${month} == 10 ]] then compadd $j $f $m $a $M $ju $J $A $s $o
elif [[ ${month} == 11 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n
elif [[ ${month} == 12 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n $d
fi
}
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,245 +0,0 @@
#autoload
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# functions for gentoo packages
# inspired by _deb_packages
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vadim A. Misbakh-Soloviov <mva@mva.name>
# * Bapt <bapt@tuxfamily.org>
# * kaworu <kaworu@kaworu.ch>
# * David Durrleman <dualmoo@gmail.com>
# * oberyno <oberyno@gmail.com>
# * Mamoru Komachi <usata@usata.org>
#
# ------------------------------------------------------------------------------
#Usage: _gentoo_packages installed|available|installed_versions|available_versions|binary|category|useflag|overlays|sets|licenses
# List installed overlays
_gentoo_packages_overlays () {
for f in /etc/portage/make.conf /etc/make.conf /usr/share/portage/config/make.globals; do
[[ -z "$PORTDIR_OVERLAY" && -r "$f" ]] &&
local PORTDIR_OVERLAY="`. "$f" 2>/dev/null; echo ${PORTDIR_OVERLAY}`"
done
compadd $=PORTDIR_OVERLAY
}
#List the sets
_gentoo_packages_sets() {
local sets
[[ -f /usr/share/portage/config/sets.conf ]] && sets=(${${${(M)${(f)"$(</usr/share/portage/config/sets.conf)"}##\[*}/\[/@}/\]})
[[ -f /etc/portage/sets.conf ]] && sets=($sets ${${${(M)${(f)"$(</etc/portage/sets.conf)"}##\[*}/\[/@}/\]})
compadd $sets
}
#List licenses
_gentoo_packages_licenses () {
local licenses var PORTDIR
var=PORTDIR
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
licenses=($PORTDIR/licenses/*(:t))
compadd $licenses
}
# Completion function to show useflags.
_gentoo_packages_useflag(){
local flags var PORTDIR
var=PORTDIR
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
flags=( ${${(M)${(f)"$(<$PORTDIR/profiles/use.desc)"}:#* - *}%% - *}
${${${(M)${(f)"$(<$PORTDIR/profiles/use.local.desc)"}#* - *}%% - *}#*:} )
compadd $flags
}
_gentoo_packages_active_useflag(){
local flags var USE
var=USE
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
flags=(${${${=USE}%-*}%\\*})
compadd $flags
}
_gentoo_packages_category(){
local var trees category
for var in PORTDIR PORTDIR_OVERLAY ; do
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
done
trees=($PORTDIR $=PORTDIR_OVERLAY)
category=( $trees/*-*(/:t) )
_wanted cat_packages expl 'category' compadd "$@" $category
}
_gentoo_packages_installed(){
local installed_dir installed_portage installed_list expl
installed_dir="/var/db/pkg"
installed_portage=($installed_dir/*-*/*)
installed_pkgname=( ${${installed_portage:t}%%-[0-9]*} )
_wanted packages expl 'category/package' compadd "$@" ${installed_pkgname}
installed_list=( ${${installed_portage#$installed_dir/}%%-[0-9]*} )
_wanted cat_packages expl 'category/package' _multi_parts "$@" / installed_list
}
_gentoo_packages_installed_versions(){
local installed_list installed_portage expl
installed_portage=(/var/db/pkg/*-*/*)
_wanted packages expl 'package' compadd "$@" ${installed_portage:t}
installed_list=( ${installed_portage##*/pkg/} )
_wanted cat_packages expl 'category/package' _multi_parts "$@" / installed_list
}
_gentoo_packages_available_pkgnames_only(){
local var trees packages
for var in PORTDIR PORTDIR_OVERLAY ; do
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
done
trees=( $PORTDIR $=PORTDIR_OVERLAY)
packages=( $trees/*-*/*(:t) )
_wanted packages expl 'package' compadd - "${(@)packages}"
}
_gentoo_packages_available(){
local var trees category packages pkg expl
for var in PORTDIR PORTDIR_OVERLAY ; do
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
done
trees=( $PORTDIR $=PORTDIR_OVERLAY)
category=( $trees/*-*(/:t) )
packages=( $trees/*-*/*(:t) )
_wanted packages expl 'package' compadd - "${(@)packages}"
# Complete cat/pkg. _multi_parts is much to slow for such a large task,
# _sep_parts removes the dash from gnome-<tab>, and _path_files wants to
# complete cat/pkg/files (if "files" is ignored with -F, miscfiles, etc...
# don't get completed).
if [[ $PREFIX != */* ]] ; then
_wanted cat_packages expl 'category/package' compadd -S '/' $category
else
compset -P '*/'
pkg=( $trees/$IPREFIX/*(:t) )
_wanted cat_packages expl 'category/package' compadd $pkg
fi
}
_gentoo_packages_available_versions(){
local var overlay_ebuilds portage_ebuilds expl trees category
for var in PORTDIR PORTDIR_OVERLAY ; do
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
[[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
done
trees=($PORTDIR $=PORTDIR_OVERLAY)
category=( $trees/*-*(/:t) )
typeset -U category
if [[ $#PREFIX -ge 1 && -z $words[(r)(--inject|-i)] ]] ; then
overlay_ebuilds=($=PORTDIR_OVERLAY/*-*/${PREFIX%%-[0-9]#*}*/*.ebuild(:t:r) )
portage_ebuilds=($PORTDIR/metadata/cache/*-*/${PREFIX%%-[0-9]#*}*(:t))
_wanted packages expl 'package' compadd $portage_ebuilds $overlay_ebuilds
fi
pkg=( $trees/${PREFIX%%/*}/*/*.ebuild(:t:r) )
_wanted cat_packages expl 'category/package' _sep_parts category / pkg
}
#Function to show tbz2 files available
_gentoo_packages_binary() {
[[ -z $PKGDIR && -r /etc/portage/make.conf ]] &&
local PKGDIR="`. /etc/portage/make.conf 2>/dev/null; echo $PKGDIR`"
[[ -z $PKGDIR && -r /etc/make.conf ]] &&
local PKGDIR="`. /etc/make.conf 2>/dev/null; echo $PKGDIR`"
[[ -z $PKGDIR && -r /usr/share/portage/config/make.globals ]] &&
local PKGDIR="`. /usr/share/portage/config/make.globals 2>/dev/null; echo $PKGDIR`"
# this doesn't take care of ${PORTAGE_BINHOST}. If Gentoo official
# binary mirror will be available we should rewrite it accordingly.
_path_files -g \*.tbz2 -W "$PKGDIR/All"
}
_gentoo_packages () {
local command="$argv[$#]"
[[ "$command" == (sets|licenses|installed(_versions|)|available(_versions|)|binary|category|(active_|)useflag|available_pkgnames_only|overlays) ]] || {
_message "unknown command: $command"
return 1
}
_gentoo_packages_$command
}
_gentoo_packages "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,410 +0,0 @@
#compdef equery euse eclean eclean-dist eclean-pkg epkginfo genpkgindex glsa-check revdep-rebuild
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Gentoolkit (collection of Gentoo administrative scripts).
# (Means portage helper python-scrips and some usefull staff)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Vadim A. Misbakh-Soloviov <mva@mva.name>
# * Bapt <bapt@tuxfamily.org>
# * kaworu <kaworu@kaworu.ch>
# * David Durrleman <dualmoo@gmail.com>
# * oberyno <oberyno@gmail.com>
# * Mamoru Komachi <usata@usata.org>
#
# ------------------------------------------------------------------------------
#<app-portage/gentoolkit-0.2.4-rc3>
#
# Status:
# euse (fully done)
# equery (fully done)
# eclean* (fully done)
# epkginfo (fully done)
# genpkgindex (fully done)
# glsa-check (fully done)
# revdep-rebuild (fully done)
# eread (nothing todo)
# XXX: shouldn't this go to _gentoo_package?
_packages () {
if compset -P '(\\|)(>=|<=|<|>|=)' ; then
_gentoo_packages ${*/(#m)(installed|available)/${MATCH}_versions}
else
_gentoo_packages $*
fi
}
_euse () {
local state tmp start_args suboptions_args
start_args=(
{'(--help)-h','(-h)--help'}'[show help]'
{'(--version)-v','(-v)--version'}'[show version]'
{'(--info)-i','(-i)--info'}'[show descriptions for the given useflags]'
{'(--active)-a','(-a)--active'}'[show currently active useflags and their origin]'
{'(--enable)-E','(-E)--enable'}'[enable the given useflags]'
{'(--disable)-D','(-D)--disable'}'[disable the given useflags]'
{'(--prune)-P','(-P)--prune'}'[show version]'
)
suboptions_args=(
{'(--global)-g','(-g)--global'}'[show only global use flags]'
{'(--local)-l','(-l)--local'}'[show only local use flags]'
)
if (( CURRENT == 2 ));then
_arguments -s $start_args
elif (( CURRENT == 3 ));then
case "$words[2]" in
-i|--info|-a|--active)
_arguments -s $suboptions_args \
'*:useflags:_gentoo_packages useflag' && ret=0
;;
-E|--enable)
_arguments \
'*:useflags:_gentoo_packages useflag' && ret=0
;;
-D|--disable)
_arguments \
'*:active useflags:_gentoo_packages active_useflag' && ret=0
esac
else
_arguments \
'*:useflag:_gentoo_packages useflag' && ret=0
fi
}
_equery () {
# Based off of X/_xauth.
local state context line expl ret=1
local tmp cmd start_args common_args
start_args=(
{'(--nocolor)-C','(-C)--nocolor'}'[turns off colors]'
{'(--quiet)-q','(-q)--quiet'}'[minimal output]'
{'(--help)-h','(-h)--help'}'[show help]'
{'(--version)-V','(-V)--version'}'[show version]'
)
common_args=(
'(-i --installed -I --exclude-installed)'{-i,--installed}'[search installed packages]'
'(-I --exclude-installed -i --installed)'{-I,--exclude-installed}'[do not search installed packages]'
'(-p --portage)'{-p,--portage-tree}'[also search in portage tree]'
'(-o --overlay-tree)'{-o,--overlay-tree}'[also search in overlay tree]'
)
_arguments -s $start_args \
'*::command:->command' && ret=0
while [[ -n "$state" ]]; do
tmp="$state"
state=
case "$tmp" in
command)
if (( CURRENT == 1 )); then
state=subcommands
else
cmd="$words[1]"
curcontext="${curcontext%:*:*}:equery-${cmd}:"
case "$cmd" in
belongs|b)
_arguments \
'(-c --category)'{-c,--category}'[only search in specified category]:category:_gentoo_packages category' \
'(-e --earlyout)'{-e,--earlyout}'[stop when first match found]' \
'(-f --full-regex)'{-f,--full-regex}'[supplied query is a full regex]:pattern:' \
'*:file:_files' && ret=0
;;
check|k)
_arguments \
':portage:_packages installed' && ret=0
;;
depends|d)
_arguments \
'(-a --all-packages)'{-a,--all-packages}'[search in all available packages (slow)]:all packages:->packages' \
'(-d --direct -D --indirect)'{-d,--direct}'[search direct dependencies only (default)]' \
'(-d --direct -D --indirect)'{-D,--indirect}'[search indirect dependencies (VERY slow)]' \
'*:package:_packages installed' && ret=0
;;
depgraph|g)
_arguments \
'(-U --no-useflags)'{-U,--no-useflags}'[do not show USE flags]' \
'(-l --linear)'{-l,--linear}'[do not use fancy formatting]' \
':package:_packages installed' && ret=0
;;
files|f)
_arguments \
'--timestamp[append timestamp]' \
'--md5sum[append md5sum]' \
'--type[prepend file type]' \
'--filter=[filter output]:filter(s):_values -s , '' dir obj sym dev fifo path conf cmd doc man info' \
':installed pkgname:_packages installed' && ret=0
;;
hasuse|h)
_arguments \
$common_args \
':useflag:_gentoo_packages useflag' && ret=0
;;
list|l)
_arguments \
$common_args \
': :_guard "^--*" pattern' && ret=0
;;
size|s)
_arguments \
'(-b --bytes)'{-b,--bytes}'[report size in bytes]' \
':package:_packages installed' && ret=0
;;
which|w)
_arguments \
':portage:_packages available' && ret=0
;;
uses|u)
_arguments \
{--all,-a}'[include non-installed packages]' \
":portage:_packages installed" && ret=0
;;
*)
_message 'command not found'
;;
esac
fi
;;
subcommands)
tmp=(
{belongs,b}'[list all packages owning file(s)]'
{check,k}'[check MD5sums and timestamps of package]'
{depends,d}'[list all packages depending on specified package]'
{depgraph,g}'[display a dependency tree for package]'
{files,f}'[list files owned by package]'
{hasuse,h}'[list all packages with specified useflag]'
{list,l}'[list all packages matching pattern]'
{size,s}'[print size of files contained in package]'
{uses,u}'[display USE flags for package]'
{which,w}'[print full path to ebuild for package]'
)
_values 'equery command' $tmp && ret=0
;;
esac
done
}
_eclean_wrapper () {
local global_opts pkg_opts dist_opts
global_opts=(
'(-C --nocolor)'{-C,--nocolor}'[turns off colors]'
'(-d,--destructive)'{-d,--destructive}'[only keep the minimum for a reinstallation]'
'(-e,--exclude-file)'{-e,--exclude-file}'[path to the exclusion file]:filename:_files'
'(-i,--interactive)'{-i,--interactive}'[ask confirmation before deletions]'
'(-n,--package-names)'{-n,--package-names}'[protect all versions (when --destructive)]'
'(-p,--pretend)'{-p,--pretend}'[only display what would be cleaned]'
'(-q,--quiet)'{-q,--quiet}'[minimal output]'
'(-t,--time-limit)'{-t,--time-limit}'[dont delete files modified since <time>]:time:_eclean_time'
'(: -)'{-h,--help}'[show help]'
'(: -)'{-V,--version}'[show version]'
)
dist_opts=(
'(-s,--size-limit)'{-s,--size-limit}'[do not delete disfiles bigger than <size>]:size:_eclean_size'
'(-f,--fetch-restricted)'{-f,--fetch-restricted}'[protect fetch-restricted files]'
)
# XXX: If you add options here make sure that it'll work.
# since there isn't any option *right* now, $pkg_opts
# is never used.
pkg_opts=()
# check which kind of eclean command we run.
case "$words[1]" in
eclean-pkg)
_arguments -s $global_opts $pkg_opts &&
return 0
;;
eclean-dist)
_arguments -s $global_opts $dist_opts &&
return 0
;;
eclean)
# eclean. complete only specifics options if an action has been given,
# global_opts and packages|distfiles otherwhise.
if (( $words[(I)(packages)] )); then
# Currently no options so return 0
#_values "packages options" $pkg_opts &&
return 0
elif (( $words[(I)(distfiles)] )); then
_values "distfiles options" $dist_opts &&
return 0
else
_arguments -s $global_opts
# complete packages|distfiles only if CURRENT-1 don't need an arg
if [[ ! $words[CURRENT-1] =~ -(e|-exclude-file|t|-time-limit|s|-size-limit|h|-help|v|-version) ]]; then
_values 'eclean command' \
'packages[clean outdated binary packages]' \
'distfiles[clean outdated packages sources files]' &&
return 0
fi
fi
;;
esac
}
_eclean_time () {
# adapted from _chmod
compset -P '*'
suf=( -S '' )
_alternative -O suf \
'number:number:(0 1 2 3 4 5 6 7 8 9)' \
'time_unit:time_unit:((y\:year m\:month w\:week d\:day h\:hour))' &&
return 0
}
_eclean_size () {
# adapted from _chmod
compset -P '*'
suf=( -S '' )
_alternative -O suf \
'number:number:(0 1 2 3 4 5 6 7 8 9)' \
'time_unit:time_unit:((G\:gigabytes M\:megabytes K\:kilobytes B\:bytes))' &&
return 0
}
_epkginfo () {
if (( CURRENT == 2 )); then
_arguments -s '*:package:_gentoo_packages available'
fi
}
_genpkgindex () {
_arguments -s \
'(: -)'{-h,--help}'[Display help and exit]' \
'(-h --help -q --quiet -v --verbose)'{-q,--quiet}'[Be quiet]' \
'(-h --help -q --quiet -v --verbose)'{-v,--verbose}'[Be verbose]' \
'(-h --help -c --compress)'{-c,--compress}'[Compresses the generated metadata with bzip2]' \
'(-h --help -P --pkgdir)'{-P,--pkgdir}'[Set the base location of the binary packages (default $PKGDIR)]:file:_files'
}
_glsa-check () {
local actions
actions=(-l --list -d --dump --print -t --test -p --pretend -f --fix -i --inject -h --help -V --version -m --mail)
_arguments -s \
"($actions)"{-l,--list}'[list all unapplied GLSA]:glsa_id:_glsa_id' \
"($actions)"{-d,--dump,--print}'[show all information about the given GLSA]:glsa_id:_glsa_id' \
"($actions)"{-t,--test}'[test if this system is affected by the given GLSA]:glsa_id:_glsa_id' \
"($actions)"{-p,--pretend}'[show the necessary commands to apply this GLSA]:glsa_id:_glsa_id' \
"($actions)"{-f,--fix}'[try to auto-apply this GLSA (experimental)]:glsa_id:_glsa_id' \
"($actions)"{-i,--inject}'[inject the given GLSA into the checkfile]:glsa_id:_glsa_id' \
'(-n --nocolor)'{-n,--nocolor}'[disable colors (option)]' \
'(: -)'{-h,--help}'[Show help message]' \
'(: -)'{-V,--version}'[some information about this tool]' \
'(-v --verbose)'{-v,--verbose}'[print more messages (option)]' \
'(-c --cve)'{-c,--cve}'[show CAN ids in listing mode (option)]' \
"($actions)"{-m,--mail}'[send a mail with the given GLSAs to the administrator]:glsa_id:_glsa_id'
}
# glsa-list can contain an arbitrary number of GLSA ids,
# filenames containing GLSAs or the special identifiers
# 'all', 'new' and 'affected'
_glsa_id () {
# XXX: we'll avoid displaying GLSA ids, because the ratio use/noise
# will be low. May be we should display only the X previous GLSA,
# or GLSA ids of the X last month.
#
# start to look at /usr/lib/gentoolkit/pym/glsa.py if GLSA_DIR is still
# PORTDIR + "metadata/glsa/"
# and then get the list (it's only xml files in GLSA_DIR, easy!)
compadd 'all' 'new' 'affected'
_files
}
_revdep-rebuild () {
if (( $words[(I)(--)] )); then
# here it's no more revdep-rebuild options, but emerge options that are called
_arguments -s '*:portage:_portage --emerge $@' && return 0
fi
_arguments -s \
'(-C --nocolor)'{-C,--nocolor}'[Turn off colored output]' \
'(-d --debug)'{-d,--debug}'[Print way too much information (uses bash set -xv)]' \
'(-e --exact)'{-e,--exact}'[Emerge based on exact package version]' \
'(: -)'{-h,--help}'[Print help]' \
'(-i --ignore)'{-i,--ignore}'[Ignore temporary files from previous runs]' \
'(-k --keep-temp)'{-k,--keep-temp}'[Do not delete temporary files on exit]' \
'(-L --library)'{-L,--library}'[<NAME> Emerge existing packages that use the library with NAME]:file:_files' \
'(-l --no-ld-path)'{-l,--no-ld-path}'[Do not set LD_LIBRARY_PATH]' \
'(-o --no-order)'{-o,--no-order}'[Do not check the build order (Saves time, but may cause breakage)]' \
'(-p --pretend)'{-p,--pretend}'[Do a trial run without actually emerging anything (also passed to emerge command)]' \
'(-P --no-progress)'{-P,--no-progress}'[Turn off the progress meter]' \
'(-q --quiet)'{-q,--quiet}'[Be less verbose (also passed to emerge command)]' \
'(-v --verbose)'{-v,--verbose}'[Be more verbose (also passed to emerge command)]' \
'(-u --no-util)'{-u,--no-util}'[<UTIL> Do not use features provided by UTIL]:file:_files'
# XXX: does someone really use -u|--no-util option?
# we can check packages installed (like portage-utils etc) to see
# which "UTIL" is avaiable.
}
case "$service" in
euse)
_euse "$@" && return 0
;;
equery)
_equery "$@" && return 0
;;
eclean*)
_eclean_wrapper "$@" && return 0
;;
epkginfo)
_epkginfo "$@" && return 0
;;
genpkgindex)
_genpkgindex "$@" && return 0
;;
glsa-check)
_glsa-check "$@" && return 0
;;
revdep-rebuild)
_revdep-rebuild "$@" && return 0
;;
esac
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

618
src/_ghc Normal file
View File

@ -0,0 +1,618 @@
#compdef ghc ghci ghc-pkg
# ------------------------------------------------------------------------------
# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ghc (https://www.haskell.org/ghc/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Gérard Milmeister
# * Philip Dexter <philip.dexter@gmail.com>
#
# ------------------------------------------------------------------------------
local state
local WORDS
#
# ghci
#
_ghc_ghci () { _ghc_compiler }
#
# ghc
#
_ghc_compiler ()
{
_arguments \
"-no-hs-main[Don't assume this program contains main]" \
"-no-user-package-conf[Don't load the user's package config file]" \
'(- *)'{--help,-\?}'[Show help information]' \
'*-I-[Add directory to path for #include files]:directory:_files -/' \
'*-X-[Language flags]:flag:_ghc_language_flags' \
'*-d-[Debugging options]:flag:_ghc_debugging_options' \
'*-f-[Compiler options]:flag:_ghc_compiler_flags' \
'*-hide-package[Hide package]:Package:_ghc_pkg_list_packages' \
'*-trust[Expose package and set it to be trusted]:Package:_ghc_pkg_list_packages' \
'*-distrust[Expose package and set it to be distrusted]:Package:_ghc_pkg_list_packages' \
'*-distrust-all[Distrust all packages by default]' \
'*-i-[Add directory to import path]:directory:->ghc_include_directory' \
'*-package[Expose package]:Package:_ghc_pkg_list_packages' \
'*:file:_files -g \*.\{lhs,hs,hc,c,s\}' \
'--info[Display information about the compiler]' \
'--show-options[Display the supported command line options]' \
'--interactive[Interactive mode]' \
'--make[Compile and link a complete Haskell program]:file:_files -g "*.{lhs,hs,hc,c,s}"' \
'--numeric-version[Display GHC version (numeric only)]' \
'--print-libdir[Display GHC library directory]' \
'--show-iface[Show interface]:file:_files -g "*.hi"' \
{--supported-languages,--supported-extensions}'[Display the supported language extensions]' \
'-C[Stop after generating C]' \
'-E[Stop after generating preprocessed, de-litted Haskell]' \
'-H[Minimum heap size]:size:' \
'-M[Output Makefile rules]' \
'-O-[Enable optimization]:level:(0 1 2)' \
'-Rghc-timing[Summarise timing stats for GHC]' \
'-S[Stop after generating assembler]' \
'-V[Display GHC version]' \
'-W[Enable normal warnings]' \
'-Wall[Enable almost all warnings]' \
'-Werror[Make warnings fatal]' \
'-Wwarn[Make warnings non-fatal]' \
'-c[Stop after generating object files]' \
'-eventlog[Enable runtime event tracing]' \
'-debug[Use the debugging runtime]' \
"-dylib-install-name[On Darwin/macOS only, set the install name]" \
'-dynamic[Use dynamic Haskell libraries]' \
'-dynamic-too[Build dynamic object files as well as static object files during compilation]' \
'-dynosuf[Set the output suffix for dynamic object files]' \
'-dynload[Select one of a number of modes for finding shared libraries at runtime]' \
'--mk-dll[DLL-creation mode (Windows only)]' \
'-framework-path[On Darwin/macOS/iOS only, add dir to the list of directories searched for frameworks]' \
'-shared[Generate a shared library (as opposed to an executable)]' \
'-staticlib[On Darwin/macOS/iOS only, generate a standalone static library (as opposed to an executable)]' \
'-e[Evaluate expression]' \
'-hide-all-packages[Hide all packages by default]' \
'-hpcdir[Directory to deposit .mix files during compilation (default is .hpc)]' \
'-n[Do a dry run]' \
'-o[Set output filename]:file:_files' \
'-outputdir[Set output directory]:directory:_files -/' \
'-package-name[Compile to be part of package]' \
'-hide-all-packages[Hide all packages by default]' \
'-package-db[Add file to the package db stack]:file:_files' \
'-clear-package-db[Clear the package db stack]' \
'-msse2[(x86 only) Use SSE2 for floating point]' \
'-monly-\[432\]-regs[(x86 only) give some registers back to the C compiler]' \
'-no-global-package-db[Remove the global package db from the stack]' \
'-global-package-db[Add the global package db to the stack]' \
"-no-user-package-db[Remove the user's package db from the stack]" \
"-user-package-db[Add the user's package db to the stack]" \
"-no-auto-link-packages[Don't automatically link in the base and rts packages]" \
'-optL[pass option to the literate pre-processor]' \
'-optP[pass option to cpp (with -cpp only)]' \
'-optF[pass option to the custom pre-processor]' \
'-optc[pass option to the C compiler]' \
'-optlo[pass option to the LLVM optimiser]' \
'-optlc[pass option to the LLVM compiler]' \
'-optm[pass option to the mangler]' \
'-opta[pass option to the assembler]' \
'-optl[pass option to the linker]' \
'-optdll[pass option to the DLL generator]' \
'-optwindres[pass option to windres.]' \
'-prof[Turn on profiling]' \
'-pgmL[Use cmd as the literate pre-processor]' \
'-pgmP[Use cmd as the C pre-processor (with -cpp only)]' \
'-pgmc[Use cmd as the C compiler]' \
'-pgms[Use cmd as the splitter]' \
'-pgml[Use cmd as the linker]' \
'-pgmdll[Use cmd as the DLL generator]' \
'-pgmF[Use cmd as the pre-processor (with -F only)]' \
'-pgmwindres[Use cmd as the program for embedding manifests on Windows]' \
'-pgmlibtool[Use cmd as the command for libtool (with -staticlib only)]' \
'-rtsopts[Only a minimum of safe options can be given to RTS]' \
'-rtsopts=[Control whether the RTS behavior can be tweaked via command-line flags and the GHCRTS environment variable (none, some, or all)]' \
'-with-rtsopts=[Set the default RTS options]' \
'-threaded[Use the threaded runtime]' \
'-ticky[Turn on ticky-ticky profiling]' \
'-tmpdir[Set the directory for temporary files]:directory:_files -/' \
'-v-[Control verbosity]:level:(0 1 2 3 4 5)' \
'-w[Disable all warnings]' \
'-x[Override default behaviour for source files]:suffix:(hs lhs hc c s o hspp)' \
'-hcsuf[Set the suffix to use for intermediate]:suffix:' \
'-hidir[Set directory for interface files]:directory:_files -/' \
'-hisuf[Set the suffix to use for interface files]:suffix:' \
'-odir[Set directory for object files]:directory:_files -/' \
'-ohi[Set the filename in which to put the interface]:filename:_files -/' \
'-osuf[Set the output file suffix]:suffix:' \
'-stubdir[Redirect FFi stub files]:directory:_files -/' \
'-dumpdir[Redirect dump files]:directory:_files -/' \
'-outputdir[Set output directory]:directory:_files -/' \
'-keep-hc-files[Retain intermediate .hc files]' \
'-keep-llvm-files[Retain intermediate LLVM .ll files]' \
'-keep-s-files[Retain intermediate .s files]' \
'-keep-raw-s-files[Retain intermediate .raw_s files]' \
'-keep-tmp-files[Retain all intermediate temporary files]' \
'-static[Use static Haskell libraries]' \
'-split-objs[Split objects (for libraries)]' \
'-no-link[Omit linking]' \
'-main-is[Set main module and function]:function:' \
'*-L-[Add dir to the list of directories searched for libraries]:directory:_files -/' \
'*-l-[Link in library]:library:->library'
[[ -n "$state" ]] &&
case "$state" in
ghc_include_directory) _ghc_include_directory ;;
library)
_wanted libraries expl library \
compadd - \
${^=LD_LIBRARY_PATH:-/usr/lib /usr/local/lib}/lib*.(a|so*)(:t:fr:s/lib//) \
&& ret=0
esac
}
_ghc_include_directory ()
{
compset -P '*:'
compset -S ':*'
_path_files -r': ' -/
}
_ghc_compiler_flags ()
{
local _ghc_compiler_flags_list
_ghc_compiler_flags_list=(
'ghci-hist-size:Set the number of entries GHCi keeps for \:history'
'print-explicit-foralls:Print explicit forall quantification in types'
'print-explicit-kinds:Print explicit kind foralls and kind arguments in types'
{no-,}'break-on-error:Break on uncaught exceptions and errors'
{no-,}'break-on-exception:Break on any exception thrown'
{no-,}'case-merge:Enable case-merging'
{no-,}'defer-type-errors:Defer as many type errors as possible until runtime'
{no-,}'dicts-strict:Make dictionaries strict'
{no-,}'do-eta-reduction:Enable eta-reduction'
{no-,}'do-lambda-eta-expansion:Enable lambda eta-reduction'
'eager-blackholing:Turn on eager blackholing'
{no-,}'enable-rewrite-rules:Switch on all rewrite rules (including rules generated by automatic specialisation of overloaded functions)'
'error-spans:Output full span in error messages'
'ext-core:Generate .hcr external Core file'
'force-recomp:Turn off recompilation checking'
{no-,}'float-in:Turn on the float-in transformation'
{no-,}'full-laziness:Turn on full laziness (floating bindings outwards)'
{no-,}'fun-to-thunk:Allow worker-wrapper to convert a function closure into a thunk if the function does not use any of its arguments. Off by default.'
{no-,}'glasgow-exts:Enable most language extensions'
{no-,}'helpful-errors:Make suggestions for mis-spelled names'
'history-size:Set simplification history size'
{no-,}'ignore-asserts:Ignore assertions in the source'
{no-,}'ignore-interface-pragmas:Ignore pragmas in interface files'
{no-,}'loopification:Turn saturated self-recursive tail-calls into local jumps in the generated assembly'
{no-,}'late-dmd-anal:Run demand analysis again, at the end of the simplification pipeline'
{no-,}'liberate-case:Turn on the liberate-case transformation'
'liberate-case-threshold=:Set the size threshold for the liberate-case transformation (default 200)'
'no-liberate-case-threshold:Set the size threshold for the liberate-case transformation (default 200)'
{no-,}'max-relevant-bindings=N:Set the maximum number of bindings to display in type error messages (default 6).'
'max-worker-args=:If a worker has that many arguments, none will be unpacked anymore (default 10)'
'max-simplifier-iterations=:Set the max iterations for the simplifier'
'no-asm-mangling:Turn off assembly mangling'
'no-black-holing:Turn off black holing'
"no-hi-version-check:Don't complain about .hi file mismatches"
'no-implicit-import-qualified:Turn off implicit qualified import of everything in GHCi'
'no-print-bind-contents:Turn off printing of binding contents in GHCi'
'no-opt-coercion:Turn off the coercion optimiser'
'no-ghci-history:Do not use the load/store the GHCi command history from/to ghci_history'
'no-ghci-sandbox:Turn off the GHCi sandbox. Means computations are run in the main thread, rather than a forked thread'
'no-gen-manifest:Do not generate a manifest file (Windows only)'
'no-embed-manifest:Do not embed the manifest in the executable (Windows only)'
"no-shared-implib:Don't generate an import library for a DLL (Windows only)"
'no-pre-inlining:Turn off pre-inlining'
'no-state-hack:Turn off the "state hack" whereby any lambda with a real-world state token as argument is considered to be single-entry'
{no-,}'print-bind-result:Turn on printing of binding results in GHCi'
{no-,}'print-evld-with-show:Enable usage of Show instances in \:print'
'unregisterised:Unregisterised compilation'
'asm:Use the native code generator'
'via-C:Compile via C'
'no-code:Omit code generation'
'byte-code:Generate byte-code'
'object-code:Generate object code'
'hpc:Turn on Haskell program coverage instrumentation'
'PIC:Generate position-independent code'
'plugin=:Load a plugin exported by a given module'
'plugin-opt=:Give arguments to a plugin module'
'context-stack=:Set the limit for context reduction (default is 20)'
'type-function-depth=:Set the limit for type function reductions (default is 200)'
'force-recomp:Turn off recompilation checking'
{no-,}"omit-interface-pragmas:Don't generate interface pragmas"
'package-trust:Enable Safe Haskell trusted package requirement for trustworthy modules'
{no-,}'pedantic-bottoms:Make GHC be more precise about its treatment of bottom'
{no-,}'disambiguate-record-fields:Enable record field disambiguation'
{no-,}'irrefutable-tuples:Make tuple pattern matching irrefutable'
{no-,}'vectorise:Enable vectorisation of nested data parallelism'
{no-,}'avoid-vect:Enable vectorisation avoidance'
{no-,}'excess-precision:Enable excess intermediate precision'
{no-,}'prof-auto:Auto-add SCCs to all bindings not marked INLINE'
{no-,}'prof-auto-top:Auto-add SCCs to all top-level bindings not marked INLINE'
{no-,}'prof-auto-exported:Auto-add SCCs to all exported bindings not marked INLINE'
{no-,}'prof-cafs:Auto-add SCCs to all CAFs'
{no-,}'prof-count-entries:Collect entry counts'
'simplifier-phases:Set the number of phases for the simplifier (default 2)'
'simpl-tick-factor=:Set the percentage factor for simplifier ticks (default 100)'
{no-,}'spec-constr:Turn on the SpecConstr transformation'
{no-,}'spec-constr-threshold=:Set the size threshold for the SpecConstr transformation (default 200)'
{no-,}'spec-constr-count=:Set the maximum number of specialisations that will be created for any one function by the SpecConstr transformation (default 3)'
'strictness=before=:Run an additional strictness analysis before a simplifier phase'
{no-,}'static-argument-transformation:Turn on the static argument transformation'
{no-,}'unbox-strict-fields:Flatten strict constructor fields'
{no-,}'unbox-small-strict-fields:Flatten strict constructor fields with a pointer-sized representation'
{no-,}'unfolding-creation-threshold:Tweak unfolding settings'
{no-,}'unfolding-fun-discount:Tweak unfolding settings'
{no-,}'unfolding-keeness-factor:Tweak unfolding settings'
{no-,}'unfolding-use-threshold:Tweak unfolding settings'
{no-,}'warn-warnings-deprecations:Warn about uses of functions & types that have warnings or deprecated pragmas'
{no-,}'warn-deprecated-flags:Warn about uses of commandline flags that are deprecated'
{no-,}'warn-duplicate-exports:Warn when an entity is exported multiple times'
{no-,}'warn-hi-shadowing:Warn when a .hi file in the current directory shadows a library'
{no-,}'warn-implicit-prelude:Warn when the Prelude is implicitly imported'
{no-,}'warn-incomplete-patterns:Warn when a pattern match could fail'
{no-,}'warn-incomplete-record-updates:Warn when a record update could fail'
{no-,}'warn-missing-fields:Warn when fields of a record are uninitialised'
{no-,}'warn-missing-methods:Warn when class methods are undefined'
{no-,}'warn-missing-signatures:Warn about top-level functions without signatures'
{no-,}'warn-duplicate-constraints:Warn when a constraint appears duplicated in a type signature'
{no-,}'warn-identities:Warn about uses of Prelude numeric conversions that are probably the identity (and hence could be omitted)'
{no-,}'warn-incomplete-uni-patterns:Warn when a pattern match in a lambda expression or pattern binding could fail'
{no-,}'warn-lazy-unlifted-bindings:(Deprecated) warn when a pattern binding looks lazy but must be strict'
{no-,}'warn-missing-import-lists:Warn when an import declaration does not explicitly list all the names brought into scope'
{no-,}'warn-missing-local-sigs:Warn about polymorphic local bindings without signatures'
{no-,}'warn-monomorphism-restriction:Warn when the Monomorphism Restriction is applied'
{no-,}'warn-name-shadowing:Warn when names are shadowed'
{warn-orphans,warn-auto-orphans}':Warn when the module contains orphan instance declarations or rewrite rules'
{no-,}'warn-overlapping-patterns:Warn about overlapping patterns'
{no-,}'warn-tabs:Warn if there are tabs in the source file'
{no-,}'warn-type-defaults:Warn when defaulting happens'
{no-,}"warn-unrecognised-pragmas:Warn about uses of pragmas that GHC doesn't recognise"
{no-,}'warn-unused-binds:Warn about bindings that are unused'
{no-,}'warn-unused-imports:Warn about unnecessary imports'
{no-,}"warn-unused-matches:Warn about variables in patterns that aren't used"
{no-,}'warn-unused-do-bind:Warn about do bindings that appear to throw away values of types other than ()'
{no-,}'warn-wrong-do-bind:Warn about do bindings that appear to throw away monadic values that you should have bound instead'
{no-,}'warn-unsafe:Warn if the module being compiled is regarded to be unsafe'
{no-,}'warn-safe:Warn if the module being compiled is regarded to be safe'
{no-,}'warn-amp:Warn on definitions conflicting with the Applicative-Monad Proposal (AMP)'
{no-,}'warn-typed-holes:Enable holes in expressions'
)
_describe -t flags 'ghc' _ghc_compiler_flags_list || compadd "$@"
}
_ghc_debugging_options ()
{
local _ghc_debugging_options_list
_ghc_debugging_options_list=(
"dump-hi:Dump the new interface to stdout"
"dump-hi-diffs:Show the differences vs. the old interface"
"dump-minimal-imports:Dump a minimal set of imports"
"core-lint:Turn on internal sanity checking"
"dump-asm:Dump assembly"
"dump-bcos:Dump interpreter byte code"
"dump-cmm:Dump C-- output"
"dump-cpranal:Dump output from CPR analysis"
"dump-cse:Dump CSE output"
"dump-deriv:Dump deriving output"
"dump-ds:Dump desugarer output"
'dump-flatC:Dump "flat" C'
"dump-foreign:Dump foreign export stubs"
"dump-hpc:Dump after instrumentation for program coverage"
"dump-inlinings:Dump inlining info"
"dump-occur-anal:Dump occurrence analysis output"
"dump-opt-cmm:Dump the results of C-- to C-- optimising passes"
"dump-parsed:Dump parse tree"
"dump-prep:Dump prepared core"
"dump-rn:Dump renamer output"
"dump-rules:Dump rules"
"dump-simpl:Dump final simplifier output"
"dump-simpl-phases:Dump output from each simplifier phase"
"dump-simpl-iterations:Dump output from each simplifier iteration"
"dump-spec:Dump specialiser output"
"dump-splices:Dump TH spliced expressions"
"dump-stg:Dump final STG"
"dump-stranal:Dump strictness analyser output"
"dump-tc:Dump typechecker output"
"dump-types:Dump type signatures"
"dump-worker-wrapper:Dump worker-wrapper output"
"dump-if-trace:Trace interface files"
"dump-tc-trace:Trace typechecker"
"dump-to-file:Dump to files instead of stdout"
"dump-core-stats:Print a one-line summary of the size of the Core program at the end of the optimisation pipeline"
"dump-llvm:Dump LLVM intermediate code"
"dump-rule-firings:Dump rule firing info"
"dump-rule-rewrites:Dump detailed rule firing info"
"dump-vect:Dump vectoriser input and output"
"dump-strsigs:Dump strictness signatures"
"dump-vt-trace:Trace vectoriser"
"dump-rn-trace:Trace renamer"
"dump-rn-stats:Renamer stats"
"dump-simpl-stats:Dump simplifier stats"
"suppress-all:In core dumps, suppress everything (except for uniques) that is suppressible"
"suppress-uniques:Suppress the printing of uniques in debug output (easier to use diff)"
"suppress-idinfo:Suppress extended information about identifiers where they are bound"
"suppress-module-prefixes:Suppress the printing of module qualification prefixes"
"suppress-type-signatures:Suppress type signatures"
"suppress-type-applications:Suppress type applications"
"suppress-coercions:Suppress the printing of coercions in Core dumps to make them shorter"
"no-debug-output:Suppress unsolicited debugging output"
"ppr-debug:Turn on debug printing (more verbose)"
"ppr-noprags:Don't output pragma info in dumps"
"ppr-user-length:Set the depth for printing expressions in error msgs"
"ppr-colsNNN:Set the width of debugging output. For example -dppr-cols200"
"ppr-case-as-let:Print single alternative case expressions as strict lets"
"source-stats:Dump haskell source stats"
"cmm-lint:C-- pass sanity checking"
"stg-lint:STG pass sanity checking"
"stg-stats:Dump STG stats"
"verbose-core2core:Show output from each core-to-core pass"
"verbose-stg2stg:Show output from each STG-to-STG pass"
"show-passes:Print out each pass name as it happens"
"faststring-stats:Show statistics for fast string usage when finished"
)
_describe -t flags 'ghc' _ghc_debugging_options_list || compadd "$@"
}
_ghc_language_flags ()
{
local _ghc_language_flags_list
_ghc_language_flags_list=(
"AllowAmbiguousTypes:Allow the user to write ambiguous types, and the type inference engine to infer them"
"Arrows:Enable arrow notation extension"
"AutoDeriveTypeable:Automatically derive Typeable instances for every datatype and type class declaration"
"BangPatterns:Enable bang patterns"
"ConstraintKinds:Enable a kind of constraints"
"CPP:Enable the C preprocessor"
"ConstrainedClassMethods:Enable constrained class methods"
"DataKinds:Enable datatype promotion"
"DefaultSignatures:Enable default signatures"
"DeriveDataTypeable:Enable deriving for the Data and Typeable classes"
"DeriveGeneric:Enable deriving for the Generic class"
"DisambiguateRecordFields:Enable record field disambiguation"
"EmptyCase:Allow empty case alternatives"
"EmptyDataDecls:Enable empty data declarations"
"ExistentialQuantification:Enable existential quantification"
"ExplicitForAll:Enable explicit universal quantification"
"ExplicitNamespaces:Enable using the keyword type to specify the namespace of entries in imports and exports"
"ExtendedDefaultRules:Use GHCi's extended default rules in a normal module"
"FlexibleContexts:Enable flexible contexts"
"FlexibleInstances:Enable flexible instances"
"ForeignFunctionInterface:Enable foreign function interface"
"FunctionalDependencies:Enable functional dependencies"
"GADTs:Enable generalised algebraic data types"
"GADTSyntax:Enable generalised algebraic data type syntax"
"GeneralizedNewtypeDeriving:Enable newtype deriving"
"Generics:Enable generic classes"
"ImplicitParams:Enable Implicit Parameters"
"ImpredicativeTypes:Enable impredicative types"
"IncoherentInstances:Enable incoherent instances"
"InterruptibleFFI:Enable interruptible FFI"
"KindSignatures:Enable kind signatures"
"LambdaCase:Enable lambda-case expressions"
"LiberalTypeSynonyms:Enable liberalised type synonyms"
"MonadComprehensions:Enable monad comprehensions"
"MonoLocalBinds:Enable do not generalise local bindings"
"MultiParamTypeClasses:Enable multi parameter type classes"
"MultiWayIf:Enable multi-way if-expressions"
"NamedFieldPuns:Enable record puns"
"NegativeLiterals:Enable support for negative literals"
"NewQualifiedOperators:Enable new qualified operator syntax"
"NoImplicitPrelude:Don't implicitly import Prelude"
"NoMonoPatBinds:Make pattern bindings polymorphic"
"NoMonomorphismRestriction:Disable the monomorphism"
"NoNPlusKPatterns:Disable support for n+k patterns"
"NoTraditionalRecordSyntax:Disable support for traditional record syntax (as supported by Haskell 98) C {f = x}"
"NullaryTypeClasses:Enable nullary (no parameter) type classes"
"NumDecimals:Enable support for 'fractional' integer literals"
"OverlappingInstances:Enable overlapping instances"
"OverloadedLists:Enable overloaded lists"
"OverloadedStrings:Enable overloaded string literals"
"PArr:Enable parallel arrays"
"PackageImports:Enable package-qualified imports"
"ParallelArrays:Enable parallel arrays"
"ParallelListComp:Enable parallel list comprehensions"
"PatternGuards:Enable pattern guards"
"PolyKinds:Enable kind polymorphism"
"PolymorphicComponents:Enable polymorphic components for data constructors"
"QuasiQuotes:Enable quasiquotation"
"Rank2Types:Enable rank-2 types"
"RankNTypes:Enable rank-N types"
"RebindableSyntax:Employ rebindable syntax"
"RecordWildCards:Enable record wildcards"
"RecursiveDo:Enable recursive do (mdo) notation"
"RelaxedPolyRec:Relaxed checking for mutually-recursive polymorphic functions"
"Safe:Enable the Safe Haskell Safe mode"
"ScopedTypeVariables:Enable lexically-scoped type variables"
"StandaloneDeriving:Enable standalone deriving"
"TemplateHaskell:Enable Template Haskell"
"TransformListComp:Enable transform list comprehensions"
"TypeFamilies:Enable type families"
"TypeOperators:Enable type operators"
"TypeSynonymInstances:Enable type synonyms"
"Trustworthy:Enable the Safe Haskell Trustworthy mode"
"UnboxedTuples:Enable unboxed tuples"
"UndecidableInstances:Enable undecidable instances"
"UnicodeSyntax:Enable unicode syntax"
"UnliftedFFITypes:Enable unlifted FFI types"
"Unsafe:Enable Safe Haskell Unsafe mode"
"ViewPatterns:Enable view patterns"
'MagicHash:Allow "#" as a postfix modifier on identifiers'
)
_describe -t flags 'ghc' _ghc_language_flags_list || compadd "$@"
}
#
# ghc-pkg
#
_ghc_pkg ()
{
WORDS=()
for w in $words[1,(($CURRENT - 1))]; do
if [[ $w != --* ]]; then WORDS+=$w; fi
done
_arguments '*:command:_ghc_pkg_command'
}
_ghc_pkg_command()
{
local -a _ghc_pkg_cmds
_ghc_pkg_cmds=(
"register:Register the package using package description"
"update:Register the package (overwriting existing package)"
"unregister:Unregister the specified package"
"expose:Expose the specified package"
"hide:Hide the specified package"
"list:List registered packages"
"find-module:List registered packages exposing module"
"latest:Prints the highest registered version of a package"
"check:Check the consistency of package dependencies and list broken packages"
"describe:Give the registered description for the specified package"
"field:Extract the specified field of the package description"
"dump:Dump the registered description for every package"
)
if (( $#WORDS == 1 )); then
_describe -t commands 'command' _ghc_pkg_cmds || compadd "$@"
else
local curcontext="$curcontext"
cmd="${${_ghc_pkg_cmds[(r)$WORDS[2]:*]%%:*}}"
if (( $#cmd )); then
_arguments \
"--user[Use current user's package database]" \
'--global[User the global package database]' \
{-f,--package-conf=}'[Use the specified package config file]:Package config file:_files' \
'--no-user-package-conf[Never reader the user package config]' \
{-V,--version}'[Output version information and exit]' \
'--force[Ignore missing directories and libraries only]' \
{-g,--auto-ghci-libs}'[Automatically build libs for GHCi]' \
{-?,--help}'[Display this help and exit]' \
'--simple-output[Print output in easy-to-parse format for some commands]' \
'--names-only[Only print package names, not versions]' \
'--ignore-case[Ignore case for substring matching]' \
'*:argument:_ghc_pkg_'$cmd
else
_message "unknown ghc-pkg command: $WORDS[2]"
fi
fi
}
_ghc_pkg_unregister () { _ghc_pkg_list_packages }
_ghc_pkg_expose () { _ghc_pkg_list_packages }
_ghc_pkg_hide () { _ghc_pkg_list_packages }
_ghc_pkg_latest () { _ghc_pkg_list_packages }
_ghc_pkg_describe () { _ghc_pkg_list_packages }
_ghc_pkg_field ()
{
_ghc_pkg_available_packages
if (( $#WORDS == 2 )); then
compadd "$@" -a -- _ghc_pkg_packages
elif (( $#WORDS == 3 )); then
compset -P '*,'
compset -S ',*'
compadd "$@" -S ',' -q -- \
name version license copyright maintainer \
stability homepage package-url description \
category author exposed exposed-modules \
hidden-modules import-dirs hs-libraries \
extra-libraries extra-ghci-libraries include-dirs \
includes depends hugs-options cc-options ld-options \
framework-dirs frameworks haddock-interfaces \
haddock-html
fi
}
_ghc_pkg_register () { _files }
_ghc_pkg_update () { _files }
_ghc_pkg_list () { _ghc_pkg_list_packages }
_ghc_pkg_find-module ()
{
if (( $#WORDS == 2)); then
if ( [[ ${+_ghc_modules} -eq 0 ]] || _cache_invalid GHC_MODULES ) &&
! _retrieve_cache GHC_MODULES;
then
_ghc_modules=( $(ghc-pkg dump | sed -n '/^exposed-modules:/{s/^exposed-modules:[ ]\+\(.*\)$/\1/;s/ /\n/;p;be};b;:e;n;/^ /{s/^[ ]\+\(.*\)$/\1/;s/ /\n/;p;be}') )
_store_cache GHC_MODULES _ghc_modules
fi
compadd "$@" -a -- _ghc_modules
fi
}
_ghc_pkg_dump () {}
_ghc_pkg_check () {}
_ghc_pkg_available_packages ()
{
if ( [[ ${+_ghc_pkg_packages_pkgs} -eq 0 ]] || _cache_invalid GHC_PACKAGES ) &&
! _retrieve_cache GHC_PACKAGES;
then
_ghc_pkg_packages=( $(ghc-pkg list --simple-output --names-only) )
_store_cache GHC_PACKAGES _ghc_pkg_packages
fi
}
_ghc_pkg_list_packages ()
{
_ghc_pkg_available_packages
compadd "$@" -a -- _ghc_pkg_packages
}
#
# dispatcher
#
case $service in
ghc)
_ghc_compiler
;;
ghci)
_ghc_ghci
;;
ghc-pkg)
_ghc_pkg
;;
esac

126
src/_gist Normal file
View File

@ -0,0 +1,126 @@
#compdef gist
# ------------------------------------------------------------------------------
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for gist (https://github.com/defunkt/gist)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Akira Maeda <https://github.com/glidenote>
# * Patrick Ziegler <https://github.com/patrick96>
# * Shivam Mehta <https://github.com/maniac-en>
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_arguments -C \
'(--login)--login[Authenticate gist on this computer.]' \
'(-f --filename)'{-f,--filename}'[Sets the filename and syntax type.]:NAME' \
'(-t --type)'{-t,--type}'[Sets the file extension and syntax type.]:EXT' \
'(-p --private --no-private)'{-p,--private}'[Makes your gist private.]' \
'(--no-private -p --private)'--no-private'[Makes your gist no private.]' \
'(-d --description)'{-d,--description}'[Adds a description to your gist.]:DESCRIPTION' \
'(-s --shorten)'{-s,--shorten}'[Shorten the gist URL using git.io.]' \
'(-u --update)'{-u,--update}'[Update an existing gist.]:URL ID:user_gists' \
'(-c --copy)'{-c,--copy}'[Copy the resulting URL to the clipboard]' \
'(-e --embed)'{-e,--embed}'[Copy the embed code for the gist to the clipboard]' \
'(-o --open --no-open)'{-o,--open}'[Open the resulting URL in a browser]' \
'(--no-open -o --open)'--no-open'[No open the resulting URL in a browser]' \
'(-P --paste)'{-P,--paste}'[Paste from the clipboard to gist]' \
'(-R --raw)'{-R,--raw}'[Display raw URL of the new gist]' \
'(-l --list)'{-l,--list}'[List all gists for user ]::user' \
'(-h --help)'{-h,--help}'[print options help]' \
'(-v --version)'{-v,--version}'[print version]' \
'(-r --read)'{-r,--read}'[Read a gist and print out the contents]:user gists:_gist_read_gists' \
'*: :_files' && ret=0
_gist_cache_policy() {
# rebuild if cache is more than a day old
local -a oldp
oldp=( "$1"(mh+1) )
(( $#oldp ))
}
_gist_read_gists() {
local update_policy ret=1
zstyle -s ":completion:${curcontext}:" cache-policy update_policy
if [[ -z "$update_policy" ]]; then
zstyle ":completion:${curcontext}:" cache-policy _gist_cache_policy
fi
# stores the gists of the logged in user in the format ID[Description]
_list=()
_cached_gists="user_gists"
# retrieve/Write gists from/to cache
if _cache_invalid $_cached_gists || ! _retrieve_cache $_cached_gists; then
_gists=$(gist -l)
if [ $? -eq 0 ]; then
_store_cache $_cached_gists _gists
else
# some error occurred, the user is probably not logged in
# set _gists to an empty string so that no completion is attempted
_gists=""
fi
else
_retrieve_cache $_cached_gists
fi
if [ -n "$_gists" ]; then
echo "$_gists" | while read -r line; do
# Splitting the gist -l output
url="$(echo "$line" | cut -d " " -f 1 | cut -d "/" -f 4)"
# gists w/o descriptions can have only one column in the output, those
# have their description set to an empty string
description="$(echo "$line" | awk '{if(NF > 1){$1=""; print $0}}')"
_list+=( "${url}[${description}]" )
done
_values "gists" $_list
ret=0
fi
return ret
}
return ret
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,9 +1,30 @@
#compdef git-flow
#description Git Flow branching model
# ------------------------------------------------------------------------------
# Copyright (c) 2010-2015 Justin Hileman
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
# OR OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for git-flow (http://github.com/nvie/gitflow).
# Completion script for git-flow (https://github.com/nvie/gitflow).
#
# Source: https://github.com/bobthecow/git-flow-completion
#
@ -15,6 +36,7 @@
# * Yusuke Muraoka (https://github.com/jbking)
# * Vincent Driessen (https://github.com/nvie)
# * Zifei Tong (https://github.com/chevalun)
# * Ben O'Hara (https://github.com/benohara)
#
# ------------------------------------------------------------------------------
@ -48,7 +70,8 @@ _git-flow ()
(init)
_arguments \
-f'[Force setting of gitflow branches, even if already configured]'
-f'[Force setting of gitflow branches, even if already configured]' \
-d'[Use default branch naming conventions and prefixes]'
;;
(version)
@ -65,6 +88,11 @@ _git-flow ()
(feature)
__git-flow-feature
;;
(support)
__git-flow-support
;;
esac
;;
esac
@ -87,6 +115,8 @@ __git-flow-release ()
'start:Start a new release branch.'
'finish:Finish a release branch.'
'list:List all your release branches. (Alias to `git flow release`)'
'publish:Publish this release branch to origin.`)'
'track:Track a release branch from origin.`)'
)
_describe -t commands 'git flow release' subcommands
_arguments \
@ -108,10 +138,24 @@ __git-flow-release ()
-s'[Sign the release tag cryptographically]'\
-u'[Use the given GPG-key for the digital signature (implies -s)]'\
-m'[Use the given tag message]'\
-n'[Don'\''t tag this release]'\
-p'[Push to $ORIGIN after performing finish]'\
-k'[Keep branch after performing finish]'\
':version:__git_flow_version_list'
;;
(publish)
_arguments \
':version:__git_flow_version_list'
;;
(track)
_arguments \
':version:__git_flow_version_list'
;;
*)
_arguments \
-v'[Verbose (more) output]'
@ -138,6 +182,7 @@ __git-flow-hotfix ()
'start:Start a new hotfix branch.'
'finish:Finish a hotfix branch.'
'list:List all your hotfix branches. (Alias to `git flow hotfix`)'
'publish:Publish this hotfix branch to origin`)'
)
_describe -t commands 'git flow hotfix' subcommands
_arguments \
@ -164,6 +209,11 @@ __git-flow-hotfix ()
':hotfix:__git_flow_hotfix_list'
;;
(publish)
_arguments \
':hotfix:__git_flow_hotfix_list'
;;
*)
_arguments \
-v'[Verbose (more) output]'
@ -190,12 +240,12 @@ __git-flow-feature ()
'start:Start a new feature branch.'
'finish:Finish a feature branch.'
'list:List all your feature branches. (Alias to `git flow feature`)'
'publish: public'
'track: track'
'diff: diff'
'rebase: rebase'
'checkout: checkout'
'pull: pull'
'publish:Publish this feature branch to origin.'
'track:Track a feature branch from origin.'
'diff:Show a diff of changes since this feature branched off.'
'rebase:Rebase a feature branch on top of develop.'
'checkout:Check out (switch to) the given feature branch.'
'pull:Pull a feature branch from a remote peer.'
)
_describe -t commands 'git flow feature' subcommands
_arguments \
@ -215,7 +265,9 @@ __git-flow-feature ()
(finish)
_arguments \
-F'[Fetch from origin before performing finish]' \
-r'[Rebase instead of merge]'\
-r'[Finish branch by rebasing first]'\
-k'[Keep branch after performing finish]'\
-D'[Force delete feature branch after finish]'\
':feature:__git_flow_feature_list'
;;
@ -260,6 +312,47 @@ __git-flow-feature ()
esac
}
__git-flow-support ()
{
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C \
':command:->command' \
'*::options:->options'
case $state in
(command)
local -a subcommands
subcommands=(
'start:Start a new support branch.'
'list:List all your support branches. (Alias to `git flow support`)'
)
_describe -t commands 'git flow support' subcommands
_arguments \
-v'[Verbose (more) output]'
;;
(options)
case $line[1] in
(start)
_arguments \
-F'[Fetch from origin before performing finish]'\
':feature:__git_flow_support_list'\
':branch-name:__git_branch_names'
;;
*)
_arguments \
-v'[Verbose (more) output]'
;;
esac
;;
esac
}
__git_flow_version_list ()
{
local expl
@ -310,6 +403,18 @@ __git_flow_hotfix_list ()
_wanted hotfixes expl 'hotfix' compadd $hotfixes
}
__git_flow_support_list ()
{
local expl
declare -a support
support=(${${(f)"$(_call_program support git flow support list 2> /dev/null | tr -d ' |*')"}})
__git_command_successful || return
_wanted hotfixes expl 'support' compadd $support
}
__git_branch_names () {
local expl
declare -a branch_names

View File

@ -1,30 +1,5 @@
#compdef git-pulls
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#

71
src/_git-revise Normal file
View File

@ -0,0 +1,71 @@
#compdef git-revise
#description update, split and rearrange commits
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for git-revise 0.7.0
# (https://github.com/mystor/git-revise/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Hannu Hartikainen (https://github.com/dancek)
#
# ------------------------------------------------------------------------------
__git-revise_commits() {
local -a commits
if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then
commits=(${(f)"$(git log -20 --pretty=format:'%h:%d %s' | sed 's/: /:/')"})
_describe -V 'commit' commits
else
_message 'not a git repository'
fi
}
__git-revise_branches() {
local -a branches
if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then
branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"})
_describe 'branch' branches
else
_message 'not a git repository'
fi
}
_git-revise() {
local curcontext="$curcontext" ret=1
_arguments -s \
'(- :)'{-h,--help}'[show help message and exit]' \
'--root[revise starting at the root commit]' \
'--ref=[reference to update]: :__git-revise_branches' \
'--reauthor[reset the author of the targeted commit]' \
'(- :)--version[show version number and exit]' \
'(--edit -e)'{--edit,-e}'[edit commit message of targeted commit(s)]' \
'(--no-autosquash)--autosquash[automatically apply fixup! and squash! commits to their targets]' \
'(--autosquash)--no-autosquash[force disable revise.autoSquash behaviour]' \
'(--all -a)--no-index[ignore the index while rewriting history]' \
'(--no-index --all -a)'{--all,-a}'[stage all tracked files before running]' \
'(--interactive -i --message -m --cut -c --patch -p)'{--patch,-p}'[interactively stage hunks before running]' \
'(--interactive -i --message -m --cut -c --patch -p)'{--interactive,-i}'[interactively edit commit stack]' \
'(--interactive -i --message -m --cut -c --patch -p)'{--message,-m}'[specify commit message on command line]:MESSAGE:()' \
'(--interactive -i --message -m --cut -c --patch -p)'{--cut,-c}'[interactively cut a commit into two smaller commits]' \
'(--gpg-sign -S --no-gpg-sign)'{--gpg-sign,-S}'[GPG sign commits]' \
'(--gpg-sign -S --no-gpg-sign)--no-gpg-sign[do not GPG sign commits]' \
'1: :__git-revise_commits' && ret=0
return $ret
}
_git-revise "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,6 +1,6 @@
#compdef git-wtf
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -36,9 +36,16 @@
# -------
#
# * Mario Fernandez (https://github.com/sirech)
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
__git_wtf_branches() {
local -a branches
branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"})
_describe 'branch' branches
}
_arguments -w -C -s \
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
'(--long --short)'{-s,--short}'[do not show commits]' \
@ -47,7 +54,7 @@ _arguments -w -C -s \
'(--key)'{-k,--key}'[show key]' \
'(--relations)'{-r,--relations}'[show relation to features / integration branches]' \
'(--dump-config)--dump-config[print out current configuration and exit]' \
'*: :__git_branch_names'
'*: :__git_wtf_branches'
# Local Variables:
# mode: Shell-Script

View File

@ -1,272 +0,0 @@
#compdef github gh
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Github gem 0.6.2 (https://github.com/defunkt/github-gem).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud (https://github.com/nicoulaj)
#
# ------------------------------------------------------------------------------
_github() {
typeset -A opt_args
local context state line curcontext="$curcontext"
local ret=1
_arguments -C \
'1:cmd:->cmds' \
'*::arg:->args' \
&& ret=0
case "$state" in
(cmds)
local commands; commands=(
'admin:open this repo'\''s Admin panel a web browser'
'browse:open this repo in a web browser'
'clone:clone a repo'
'config:automatically set configuration info, or pass args to specify'
'create:create a new, empty GitHub repository'
'create-from-local:create a new GitHub repository from the current local repository'
'fetch:fetch from a remote to a local branch'
'fetch_all:fetch all refs from a user'
'fork:forks a GitHub repository'
'home:open this repo'\''s master branch in a web browser'
'ignore:ignore a SHA'
'info:info about this project'
'issues:project issues tools'
'network:project network tools'
'open:open the given user/project in a web browser'
'pull:pull from a remote'
'pull-request:generate the text for a pull request'
'search:search GitHub for the given repository name'
'track:track another user'\''s repository'
)
_describe -t commands 'command' commands && ret=0
;;
(args)
curcontext="${curcontext%:*:*}:github-cmd-$words[1]:"
case $words[1] in
(admin|fetch|fetch_all|home|info)
_message 'no more arguments' && ret=0
;;
(browse)
_arguments \
'1: :_github_users' \
'2: :_github_branches' \
&& ret=0
;;
(clone)
_arguments \
'1: :_github_users' \
'2: :_github_repos' \
'3: :_files -/' \
'--search[search for user or repo and clone selected repository]:user or repo' \
'--ssh[clone using the git@github.com style url]' \
&& ret=0
;;
(config)
_arguments \
'1: :_github_users' \
'2: :_github_repos' \
&& ret=0
;;
(create)
_arguments \
'1:repo name' \
'--markdown[create README.markdown]' \
'--mdown[create README.mdown]' \
'--private[create private repository]' \
'--rdoc[create README.rdoc]' \
'--rst[create README.rst]' \
'--textile[create README.textile]' \
&& ret=0
;;
(create-from-local)
_arguments \
'--private[create private repository]' \
&& ret=0
;;
(fork)
_arguments \
'1: :_github_user_slash_repos' \
&& ret=0
;;
(ignore)
_arguments \
'1: :_github_network_commits' \
&& ret=0
;;
(issues)
_arguments -C \
'1:issue-status:->issue-statuses' \
'2:: :_github_users' \
'--after[only show issues updated after a certain date]:date' \
'--label[only show issues with a certain label]:label' \
&& ret=0
case "$state" in
(issue-statuses)
local statuses; statuses=(
'open:show open issues'
'closed:show closed issues'
)
_describe -t statuses 'status' statuses && ret=0
;;
esac
;;
(network)
_arguments -C \
'1:network-subcommand:->network-subcommands' \
'*::network-arg:->network-args' \
'(--after)--before[only show commits before a certain date]:date' \
'(--before)--after[only show commits after a certain date]:date' \
'--applies[filter commits to patches that apply cleanly]' \
'--author[filter commits on a email address of author]:author' \
'--cache[use the network data even if it'\''s expired]' \
'--common[show common branch point]' \
'--limit[only look through the first X heads - useful for really large projects]:number' \
'--noapply[filter commits to patches that do not apply cleanly]' \
'--nocache[do not use the cached network data]' \
'--project[filter commits on a certain project]:project' \
'--shas[only show shas]' \
'--sort[how to sort : date, branch, author]:sort type:((date\:sort\ by\ date\ \(default\) branch\:sort\ by\ branch author\:sort\ by\ author))' \
'--thisbranch[look at branches that match the current one]' \
&& ret=0
case "$state" in
(network-subcommands)
local subcommands; subcommands=(
'web:open network in a web browser'
'list:list network members'
'fetch:fetch network members commits'
'commits:list network members commits'
)
_describe -t subcommands 'subcommand' subcommands && ret=0
;;
(network-args)
case $words[1] in
(web)
_arguments \
'1: :_github_users' \
&& ret=0
;;
esac
;;
esac
;;
(open)
_arguments \
'1: :_github_user_slash_repos' \
&& ret=0
;;
(pull)
_arguments \
'1: :_github_users' \
'2: :_github_branches' \
'--merge[automatically merge remote'\''s changes into your master]' \
&& ret=0
;;
(pull-request)
_arguments \
'1: :_github_users' \
'2: :_github_branches' \
&& ret=0
;;
(search)
_arguments \
'1:query' \
&& ret=0
;;
(track)
_arguments \
'1:: :((remote))' \
'*: :_github_user_slash_repos' \
{--private,--ssh}'[use git@github.com: instead of git://github.com/]' \
&& ret=0
;;
esac
;;
esac
return ret
}
(( $+functions[_github_users] )) ||
_github_users() {
_alternative \
'users:user:_users' \
'github-network-users:github network user:_github_network_users'
}
(( $+functions[_github_network_users] )) ||
_github_network_users() {
local users; users=(${(f)"$(_call_program users $service network list 2>/dev/null)"})
_describe -t github-network-users 'github network user' users "$@"
}
(( $+functions[_github_repos] )) ||
_github_repos() {
_message -e repos 'repo'
}
(( $+functions[_github_branches] )) ||
_github_branches() {
_message -e branches 'branch'
}
(( $+functions[_github_user_slash_repos] )) ||
_github_user_slash_repos() {
local ret=1
if compset -P '*/'; then
_wanted repos expl 'repo' _github_repos && ret=0
else
_wanted users expl 'user' _github_users -qS/ && ret=0
fi
return ret
}
(( $+functions[_github_network_commits] )) ||
_github_network_commits() {
local commits; commits=(${${(f)"$(_call_program commits $service network commits 2>/dev/null)"}%%[[:blank:]]*})
_describe -t commits 'commit' commits "$@"
}
_github "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

125
src/_glances Normal file
View File

@ -0,0 +1,125 @@
#compdef glances
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for glances (https://nicolargo.github.io/glances/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * loranger (https://github.com/loranger)
# * Shohei Yoshida (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_glances() {
_arguments \
'(- *)'{-h,--help}'[show this help message and exit]' \
'(- *)'{-V,--version}"[show program's version number and exit]" \
'(-C,--config)'{-C,--config}'[path to the configuration file]: :_files' \
'(--modules-list --module-list)'{--modules-list,--module-list}'[display modules list and exit]' \
'(--disable-plugin --disable-plugins)'{--disable-plugin,--disable-plugins}'[disable plugin(comma separated list or all)]:plugin' \
'(--enable-plugin --enable-plugins)'{--enable-plugin,--enable-plugins}'[enable plugin(comma separated list)]:plugin' \
'--disable-process[disable process module]' \
'--disable-webui[disable the Web Interface]' \
'(--light --enable-light)'{--light,--enable-light}'[light mode for Curses UI]' \
'(-0 --disable-irix)'{-0,--disable-irix}"[task's cpu usage will be divided by the total number of CPUs]" \
'(-1 --percpu)'{-1,--percpu}'[start Clances in per CPU mode]' \
'(-2 --disable-left-sidebar)'{-2,--disable-left-sidebar}'[disable network, disk I/O, FS and sensors modules]' \
'(-3 --disable-quicklook)'{-3,--disable-quicklook}'[disable quick look module]' \
'(-4 --full-quicklook)'{-4,--full-quicklook}'[disable all but quick look and load]' \
'(-5 --disable-top)'{-5,--disable-top}'[disable top menu(QL, CPU, MEM, SWAP and LOAD)]' \
'(-6 --menugpu)'{-6,--menugpu}'[start Glances in mean GPU mode]' \
'--disable-history[disable stats history]' \
'--disable-bold[disable bold mode in the terminal]' \
'--disable-bg[disable background colors in the terminal]' \
'--enable-irq[enable IRQ mode]' \
'--enable-process-extended[enable extended stats on top process]' \
'(--separator --enable-separator)'{--separator,--enable-separator}'[enable separator in the UI]' \
'--sort-process[sort processes]: :(cpu_percent memory_percent username cpu_times io_counters name)' \
'(--programs --program)'{--programs,--program}'[Accumulate processes by program]' \
'--export[enable export module]:module' \
'--export-csv-file[file path for CSV exporter]: :_files' \
'--export-csv-overwrite[overwrite existing CSV file]' \
'--export-json-file[file path for JSON exporter]: :_files' \
'--export-graph-path[Folder for Graph exporter]: :_files -/' \
'(-c --client)'{-c,--client}'[connect to a Glances server]:host:_hosts' \
'(-s --server)'{-s,--server}'[run Glances in server mode]' \
'--browser[start the client browser]' \
'--disable-autodiscover[disable autodiscover feature]' \
'(-p --port)'{-p,--port}'[define the client/server TCP port]' \
'(-B --bind)'{-B,--bind}'[bind server to the given IPv4/IPv6 address or hostname]:host:_hosts' \
'--username[define a client/server username]' \
'--password[define a client/server password]' \
'-u[use the given client/server username]:user_name' \
'--snmp-community[SNMP community]:community' \
'--snmp-port[SNMP community]:port' \
'--snmp-version[SNMP version]:version:(1 2c 3)' \
'--snmp-user[SNMP user]:user' \
'--snmp-auth[SNMP auth]:auth' \
'--snmp-force[force SNMP mode]' \
'(-t --time)'{-t,--time}'[set minimum refresh rate in seconds(default: 2 sec)]:seconds' \
'(-w --webserver)'{-w,--webserver}'[run Glances in web server mode]' \
'--cached-time[set the server cache time(default: 1 sec)]:seconds' \
'--stop-after[stop Glances after n fresh]:' \
'--open-web-browser[try to open the Web UI in the default browser]' \
'(-q --quiet)'{-q,--quiet}'[do not display the curses interface]' \
'(-f --process-filter)'{-f,--process-filter}'[set the process filter pattern]:regexp' \
'--process-short-name[force short name for processes name]' \
'--process-long-name[force long name for processes name]' \
'--stdout[display stats to stdout one stat per line]:stats' \
'--stdout-json[display stats to stdout, JSON format]:stats' \
'--stdout-csv[display stats to CSV, JSON format]:stats' \
'--issue[test all plugins and exit]' \
'--trace-malloc[trace memory allocation and display it at the end of the process]' \
'--memory-leak[test memory leak]' \
'--api-doc[display fields descriptions]'\
'--hide-kernel-threads[hide kernel threads in process list]' \
'(-b --byte)'{-b,--byte}'[display network rate in byte per second]' \
'--diskio-show-ramfs[show RAM Fs in the DiskIO plugin]' \
'--diskio-iops[show IO per second in the DiskIO plugin]' \
'--fahrenheit[display temperature in Fahrenheit]' \
'--fs-free-space[display FS free space instead of used]' \
'--sparkline[display sparklines instead of bar in the curses interface]' \
'--disable-unicode[disable unicode characters in the curses interface]' \
'--theme-white[optimize display colors for white background ]' \
'--disable-check-update[disable online Glances version check]' \
'--strftime[strftime format string for displaying current date in standalone mode]' \
}
_glances "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

1223
src/_golang Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,30 @@
#compdef google
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#

80
src/_gpgconf Normal file
View File

@ -0,0 +1,80 @@
#compdef gpgconf
# Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Description:
# Completions for gpgconf (configuration utility provided with GnuPG 2.4.4
# <https://gnupg.org>)
#
# Authors:
# * "score" <seejay.11@gmail.com> https://keybase.io/score_under
_gpgconf_component() {
local values=(
"${(@f)$(gpgconf --list-components | awk -F: '{printf "%s[%s]\n", $1, $2}')}"
)
if [ "${action[2]}" = all ]; then
values+=('all[All daemon components]')
fi
_values 'component' "${(o)values[@]}"
}
_arguments \
'--help[print help text]' \
'--list-components[list all components]' \
'--check-programs[check all programs]' \
'--apply-defaults[apply global default values]' \
'--list-dirs[get the configuration directories for gpgconf]' \
'--list-config[list global configuration file]' \
'--check-config[check global configuration file]' \
'--query-swdb[query the software version database]' \
'--reload[reload all or a given component]:component:_gpgconf_component all' \
'--launch[launch a given component]:component:_gpgconf_component all' \
'--kill[kill a given component]:component:_gpgconf_component all' \
'--create-socketdir[create a directory for sockets below /run/user or /var/run/user]' \
'--remove-socketdir[remove a directory created with command --create-socketdir]' \
'--list-options[list options]:component:_gpgconf_component' \
'--change-options[change options]:component:_gpgconf_component' \
'--check-options[check options]:component:_gpgconf_component' \
'--apply-profile[update configuration files using the specified file]:configuration file:_path_files' \
'--status-fd[write status info to the specified file descriptor]:file descriptor' \
'--homedir[specify an alternative gnupg configuration home directory]:directory:_directories' \
'--chuid[change the current user to uid which may either be a number or a name]:uid' \
'(--lock --unlock)--unlock[remove a stale lock file hold for file]:name' \
'(--lock --unlock)--lock[name of file protected by the lock]:name' \
'(-o --output)'{-o,--output}'[write output to the specified file]:output file:_path_files' \
'(-v --verbose)'{-v,--verbose}'[verbose]' \
'(-q --quiet)'{-q,--quiet}'[quiet]' \
'(-n --dry-run)'{-n,--dry-run}'[do not make any changes]' \
'(-r --runtime)'{-r,--runtime}'[activate changes at runtime, if possible]'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,135 +0,0 @@
#compdef gradle gradlew
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Gradle 1.0-milestone-5 (http://www.gradle.org).
#
# Status: incomplete (see TODO/FIXME tags)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# ------------------------------------------------------------------------------
_gradle() {
typeset -A opt_args
local context state line
local curcontext="$curcontext"
_arguments \
'(- 1 *)'{-?,-h,--help}'[show help message]' \
'(-a --no-rebuild)'{-a,--no-rebuild}'[do not rebuild project dependencies]' \
'(-b --build-file)'{-b,--build-file}'[specify the build file]:build file:_gradle_scripts' \
'(-C --cache)'{-C,--cache}'[specify how compiled build scripts should be cached]:cache strategy:((rebuild\:rebuild\ the\ cache on\:use\ the\ cache\ \(default\)))' \
'(-c --settings-file)'{-c,--settings-file}'[speciy the settings file]:settings file:_gradle_scripts' \
'*'{-D-,--system-prop}'[set system property of the JVM]:property:_gradle_properties' \
'(-d --debug -q --quiet -i --info)'{-d,--debug}'[log in debug mode (includes normal stacktrace)]' \
'(--foreground --no-daemon --stop)--daemon[use the Gradle daemon to run the build, starts the daemon if not running]' \
'(-e --embedded)'{-e,--embedded}'[specify an embedded build script]:embedded build script' \
'(--daemon --no-daemon --stop)--foreground[start the Gradle daemon in the foreground]' \
'(-g --gradle-user-home)'{-g,--gradle-user-home}'[specify the gradle user home directory]: :_files -/' \
'--gui[launch a GUI application]' \
'(-I --init-script)'{-I,--init-script}'[specify an initialization script]:init script:_gradle_scripts' \
'(-i --info -q --quiet -d --debug)'{-i,--info}'[set log level to info]' \
'(-m --dry-run)'{-m,--dry-run}'[run the builds with all task actions disabled]' \
'(-n --dependencies)'{-n,--dependencies}'[show list of all project dependencies]' \
'--no-color[do not use color in the console output]' \
'(--daemon --foreground --stop)--no-daemon[do not use the Gradle daemon to run the build]' \
'--no-opt[ignore any task optimization]' \
'*'{-P-,--project-prop}'[set project property for the build script]:property:_gradle_properties' \
'(-p --project-dir)'{-p,--project-dir}'[specify the start directory for Gradle]: :_files -/' \
'--profile[profile build execution time and generate a report in the <build_dir>/reports/profile directory]' \
'(-q --quiet -d --debug -i --info)'{-q,--quiet}'[log errors only]' \
'(-r --properties)'{-r,--properties}'[show list of all available project properties]' \
'(-S --full-stacktrace)'{-S,--full-stacktrace}'[print out the full (very verbose) stacktrace for any exceptions]' \
'(-s --stacktrace)'{-s,--stacktrace}'[print out the stacktrace also for user exceptions]' \
'(--daemon --foreground)--stop[stop the Gradle daemon if it is running]' \
'(-t --tasks)'{-t,--tasks}'[show list of available tasks]' \
'(-u --no-search-upward)'{-u,--no-search-upward}'[don'\''t search in parent folders for a settings.gradle file]' \
'(-v --version)'{-v,--version}'[print version info]' \
'(-x --exclude-task)*'{-x,--exclude-task}'[specify a task to be excluded from execution]:task:_gradle_tasks' \
'*: :_gradle_tasks'
}
(( $+functions[_gradle_tasks] )) ||
_gradle_tasks() {
local alternatives task_group task_group_name task_group_tasks
local project="${PREFIX%:*}"
alternatives=("project:project:_gradle_projects -qS:")
for task_group in ${(M)${(ps:\n\n:)"$($service --daemon --quiet --no-color ${project}:tasks 2>/dev/null)"}:#*[[:space:]]\-[[:space:]]*}; do
task_group_name="${${${task_group%%---*}%[[:space:]]tasks[[:space:]]*}:l}"
task_group_tasks=(${(q)${(f)${task_group##*---}}/[[:space:]]\-[[:space:]]/:})
alternatives+=("${task_group_name//[[:space:]]/-}-task:${task_group_name} task:((${task_group_tasks[@]}))")
done
_alternative "${alternatives[@]}"
}
(( $+functions[_gradle_projects] )) ||
_gradle_projects() {
local project="${PREFIX%:*}"
local projects; projects=(${${${(M)${(f)"$($service --daemon --quiet --no-color ${project}:projects 2>/dev/null)"}:#*--- Project\ \':*}#*\'}%\'*})
_multi_parts $@ : projects
}
(( $+functions[_gradle_scripts] )) ||
_gradle_scripts() {
_files -g '*.gradle*'
}
(( $+functions[_gradle_properties] )) ||
_gradle_properties() {
local ret=1
if compset -P '*='; then
_message -e property-values 'property value' && ret=0
else
_wanted property-names expl 'property name' _gradle_property_names -qS= && ret=0
fi
return ret
}
(( $+functions[_gradle_property_names] )) ||
_gradle_property_names() {
local property_names; property_names=(${${(M)${(f)"$($service --daemon --quiet --no-color :properties 2>/dev/null)"}:#*:*}%%:*})
_describe -t property_names 'property name' property_names "$@"
}
_gradle "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

78
src/_grpcurl Normal file
View File

@ -0,0 +1,78 @@
#compdef grpcurl
# ------------------------------------------------------------------------------
# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for grpcurl v1.8.7. (https://github.com/fullstorydev/grpcurl)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
#
# ------------------------------------------------------------------------------
_arguments \
'*-H[Additional headers in "name:value" format]:header' \
'-allow-unknown-fields[If "json" format is used, allows unknown fields to be present]' \
'-authority[The authoritative name of the remote server]:authority' \
'-cacert[File containing trusted root certificates for the server]: :_files' \
'-cert[File containing client certificate(public key) to present to the server]: :_files' \
'-connect-timeout[The maximum time, in seconds, to wait for connection to be established]:seconds' \
'*-d[Data for request contents]:data' \
'-emit-defaults[Emit default values for JSON-encoded responses]' \
'-expand-headers[Headers may use "\${NAME}" syntax to reference environment variables]' \
'-format[The format of request data]: :(json text)' \
'-format-error[When a non-zero status is returned, format the response using the value set by the -format flag]' \
'*-import-path[The path to a directory from which proto sources can be imported]: :_files -/' \
'-insecure[Skip server certificate and domain verification]' \
'-keepalive-time[The maximum idle time in seconds]:seconds' \
'-key[File containing client private key, to present to the server]: :_files' \
'-max-msg-sz[The maximum encoded size of a response message in bytes, that grpcurl will accept]:bytes' \
'-max-time[The maximum total time the operation can take, in seconds]:seconds' \
'-msg-template[When describing messages, show a template of input data]' \
'-plaintext[Use plain-text HTTP/2 when connecting to server(no TLS)]' \
'*-proto[The name of a proto source file]: :_files' \
'*-protoset[The name of a file containing an encoded FileDescriptorSet]: :_files' \
'-protoset-out[The name of a file to be written that will contain a FileDescriptorSet]: :_files' \
'*-reflect-header[Additional reflection headers in "name:value" format]:header' \
'*-rpc-header[Additional RPC headers in "name:value" format]' \
'-servername[Override server name when validating TLS certificate]' \
'-unix[Indicates that the server address is the path to a Unix domain socket]' \
'-use-reflection[Server reflection will be used to determine the RPC schema]' \
'-user-agent[The specified value will be added to the User-Agent header set by the grpc-go library]:user_agent' \
'-v[Enable verbose output]' \
'(- *)-version[Print version]' \
'-vv[Enable very verbose output]' \
'(- *)-h[Show help message]' \
'*:: :_files'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

84
src/_gtk-launch Normal file
View File

@ -0,0 +1,84 @@
#compdef gtk-launch gtk4-launch
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for gtk-launch on gtk+-3.24.37, gtk4-launch-4.10.4
# (https://www.gtk.org/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * ncaq <ncaq@ncaq.net>
#
# ------------------------------------------------------------------------------
_gtk-launch() {
local ret=1
if [[ $service == "gtk-launch" ]]; then
_arguments -S -A "-*" \
'(- *)'{-h,--help}'[Show help options]' \
'(- *)'{-v,--version}'[Show program version]' \
'(- *)'--help-all'[Show all help options]' \
'(- *)'--help-gtk'[Show GTK+ Options]' \
'(- *)'--display='[X display to use]:display:_x_display' \
'--class=[Program class as used by the window manager]:class' \
'--name=[Program name as used by the window manager]:name' \
'--gtk-module=[Load additional GTK+ modules]:module' \
'--g-fatal-warnings[Make all warnings fatal]' \
'1: :_gtk-launch-apps' \
'*:: :_files' && ret=0
else
# gtk4-launch
_arguments -S -A "-*" \
'(- *)'{-h,--help}'[Show help options]' \
'(- *)'{-v,--version}'[Show program version]' \
'1: :_gtk-launch-apps' \
'*:: :_files' && ret=0
fi
return ret
}
(( $+functions[_gtk-launch-apps] )) ||
_gtk-launch-apps() {
local -a apps=(/usr/share/applications/*.desktop(:r:t))
_values 'applications' $apps
}
_gtk-launch "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

19
src/_hello Normal file
View File

@ -0,0 +1,19 @@
#compdef hello
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for GNU hello (https://www.gnu.org/software/hello/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Wu Zhenyu <wuzy01@qq.com>
#
# ------------------------------------------------------------------------------
_arguments -s '(- *)'{-h,--help}'[display this help and exit]' \
'(- *)'{-v,--version}'[display version information and exit]' \
{-t,--traditional}'[use traditional greeting]' \
{-g,--greeting=}'[use TEXT as the greeting message]:TEXT'

View File

@ -1,174 +0,0 @@
#compdef heroku
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for the Heroku client gem (https://github.com/heroku/heroku)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Ali B. (http://awhitebox.com)
#
# ------------------------------------------------------------------------------
local -a _1st_arguments
_1st_arguments=(
"account\:confirm_billing":"Confirm that your account can be billed at the end of the month"
"addons":"list installed addons"
"addons\:list":"list all available addons"
"addons\:add":"install an addon"
"addons\:upgrade":"upgrade an existing addon"
"addons\:downgrade":"downgrade an existing addon"
"addons\:remove":"uninstall an addon"
"addons\:open":"open an addon's dashboard in your browser"
"apps":"list your apps"
"apps\:info":"show detailed app information"
"apps\:create":"create a new app"
"apps\:rename":"rename the app"
"apps\:open":"open the app in a web browser"
"apps\:destroy":"permanently destroy an app"
"auth\:login":"log in with your heroku credentials"
"auth\:logout":"clear local authentication credentials"
"config":"display the config vars for an app"
"config\:add":"add one or more config vars"
"config\:remove":"remove a config var"
"db\:push":"push local data up to your app"
"db\:pull":"pull heroku data down into your local database"
"domains":"list custom domains for an app"
"domains\:add":"add a custom domain to an app"
"domains\:remove":"remove a custom domain from an app"
"domains\:clear":"remove all custom domains from an app"
"help":"list available commands or display help for a specific command"
"keys":"display keys for the current user"
"keys\:add":"add a key for the current user"
"keys\:remove":"remove a key from the current user"
"keys\:clear":"remove all authentication keys from the current user"
"logs":"display recent log output"
"logs\:cron":"DEPRECATED: display cron logs from legacy logging"
"logs\:drains":"manage syslog drains"
"maintenance\:on":"put the app into maintenance mode"
"maintenance\:off":"take the app out of maintenance mode"
"pg\:info":"display database information"
"pg\:ingress":"allow direct connections to the database from this IP for one minute"
"pg\:promote":"sets DATABASE as your DATABASE_URL"
"pg\:psql":"open a psql shell to the database"
"pg\:reset":"delete all data in DATABASE"
"pg\:unfollow":"stop a replica from following and make it a read/write database"
"pg\:wait":"monitor database creation, exit when complete"
"pgbackups":"list captured backups"
"pgbackups\:url":"get a temporary URL for a backup"
"pgbackups\:capture":"capture a backup from a database id"
"pgbackups\:restore":"restore a backup to a database"
"pgbackups\:destroy":"destroys a backup"
"plugins":"list installed plugins"
"plugins\:install":"install a plugin"
"plugins\:uninstall":"uninstall a plugin"
"ps\:dynos":"scale to QTY web processes"
"ps\:workers":"scale to QTY background processes"
"ps":"list processes for an app"
"ps\:restart":"restart an app process"
"ps\:scale":"scale processes by the given amount"
"releases":"list releases"
"releases\:info":"view detailed information for a release"
"rollback":"roll back to an older release"
"run":"run an attached process"
"run\:rake":"remotely execute a rake command"
"run\:console":"open a remote console session"
"sharing":"list collaborators on an app"
"sharing\:add":"add a collaborator to an app"
"sharing\:remove":"remove a collaborator from an app"
"sharing\:transfer":"transfer an app to a new owner"
"ssl":"list certificates for an app"
"ssl\:add":"add an ssl certificate to an app"
"ssl\:remove":"remove an ssl certificate from an app"
"ssl\:clear":"remove all ssl certificates from an app"
"stack":"show the list of available stacks"
"stack\:migrate":"prepare migration of this app to a new stack"
"version":"show heroku client version"
)
_arguments '*:: :->command'
if (( CURRENT == 1 )); then
_describe -t commands "heroku command" _1st_arguments
return
fi
local -a _command_args
case "$words[1]" in
apps:info)
_command_args=(
'(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \
)
;;
apps:create)
_command_args=(
'(-a|--addons)'{-a,--addons}'[a list of addons to install]' \
'(-r|--remote)'{-r,--remote}'[the git remote to create, default "heroku"]' \
'(-s|--stack)'{-s,--stack}'[the stack on which to create the app]' \
)
;;
config)
_command_args=(
'(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \
)
;;
db:push)
_command_args=(
'(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \
'(-d|--debug)'{-d,--debug}'[enable debugging output]' \
'(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the push]' \
'(-f|--filter)'{-f,--filter}'[only push certain tables]' \
'(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \
'(-t|--tables)'{-t,--tables}'[only push the specified tables]' \
)
;;
db:pull)
_command_args=(
'(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \
'(-d|--debug)'{-d,--debug}'[enable debugging output]' \
'(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the pull]' \
'(-f|--filter)'{-f,--filter}'[only pull certain tables]' \
'(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \
'(-t|--tables)'{-t,--tables}'[only pull the specified tables]' \
)
;;
keys)
_command_args=(
'(-l|--long)'{-l,--long}'[display extended information for each key]' \
)
;;
logs)
_command_args=(
'(-n|--num)'{-n,--num}'[the number of lines to display]' \
'(-p|--ps)'{-p,--ps}'[only display logs from the given process]' \
'(-s|--source)'{-s,--source}'[only display logs from the given source]' \
'(-t|--tail)'{-t,--tail}'[continually stream logs]' \
)
;;
pgbackups:capture)
_command_args=(
'(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \
)
;;
stack)
_command_args=(
'(-a|--all)'{-a,--all}'[include deprecated stacks]' \
)
;;
esac
_arguments \
$_command_args \
'(--app)--app[the app name]' \
&& return 0
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

286
src/_hledger Normal file
View File

@ -0,0 +1,286 @@
#compdef hledger
# ------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for hledger 1.10 ( https://hledger.org/ )
# Last updated: 07.08.2018
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Valodim ( https://github.com/Valodim )
# * fdw ( https://github.com/fdw )
#
# ------------------------------------------------------------------------------
# Notes
# -----
#
# account completion depends on availability of a ~/.hledger.journal file
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" curstate state line expl grp cmd ret=1
typeset -a args
typeset -A opt_args
args=(
'(- *)'{-h,--help}'[print help information]'
'(-f --file)'{-f,--file}'=[use a different input file]:input file:_files'
'--rules-file=[CSV conversion rules file]:rules file:_files'
'--alias=[display accounts named OLD as NEW]:alias specification'
'--anon=[anonymize accounts and payees]'
'(-b --begin)'{-b,--begin}'=[include postings/txns on or after this date]:date'
'(-e --end)'{-e,--end}'=[include postings/txns before this date]:date'
'(-D --daily)'{-D,--daily}'[multiperiod/multicolumn report by day]'
'(-W --weekly)'{-W,--weekly}'[multiperiod/multicolumn report by week]'
'(-M --monthly)'{-M,--monthly}'[multiperiod/multicolumn report by month]'
'(-Q --quarterly)'{-Q,--quarterly}'[multiperiod/multicolumn report by quarter]'
'(-Y --yearly)'{-Y,--yearly}'[multiperiod/multicolumn report by year]'
'(-p --period)'{-p,--period}'=[set start date, end date, and/or reporting interval all at once]'
'(-C --cleared)'{-C,--cleared}'[include only cleared postings/txns]'
'(-U --uncleared)'{-U,--uncleared}'[include only uncleared postings/txns]'
'(-R --real)'{-R,--real}'[include only non-virtual postings]'
'(--depth)--depth=[hide accounts/postings deeper than N]:depth'
'(-E --empty)'{-E,--empty}'[show empty/zero things which are normally omitted]'
'(-B --cost)'{-B,--cost}'[show amounts in their cost price'\''s commodity]'
'(-V --value)'{-V,--value}'[converts reported amounts to the current market value]'
'(-I --ignore-assertions)'{-I,--ignore-assertions}'[ignore any failing balance assertions]'
'--forecast=[apply periodic transaction rules to generate future transactions]'
)
_arguments -C "$args[@]" -A "-*" \
'(- *)--version[print version information]' \
'--debug[show debug output]' \
'1: :->cmds' \
'*:: :->args' && ret=0
while (( $#state )); do
curstate=$state
shift state
case $curstate in
cmds)
typeset -a cmds
cmds=(
'accounts:show account names (a)'
'activity:show an ascii barchart of posting counts per interval'
'add:prompt for transactions and add them to the journal'
'balance:show accounts and balances (b, bal)'
'balancesheet:show a balance sheet (bs)'
'balancesheetequity:like balancesheet, but also reports equity'
'cashflow:show a cashflow statement (cf)'
'check-dates:check that transactions are sorted by increasing date'
'check-dupes:report account names having the same leaf but different prefixes'
'close:print closing/opening transactions that bring some or all account balances to zero and back'
'help:show any of the hledger manuals'
'import:read new transactions added to each file since last run, and add them to the main journal file'
'incomestatement:show an income statement (is)'
'prices:print market price directives from the journal'
'print:show transaction entries (p, txns)'
'print-unique:print transactions which do not reuse an already-seen description'
'register:show postings and running total (r, reg)'
'register-patch:print the one posting whose transaction description is closest to the description'
'rewrite:print all transactions, adding custom postings to the matched ones'
'stats:show some journal statistics'
'tags:list all the tag names used in the journal'
'test:run built-in unit tests'
)
_describe 'subcommands' cmds && ret=0
;;
args)
: $words
local cmd=$words[1]
(( $+cmd )) || return 1
# curcontext="${curcontext%:*:*}:$service-$cmd:"
case $cmd in
accounts)
args=(
'(--declared)--declared[show account names declared with account directives]'
'(--used)--used[show account names posted to by transactions]'
'(--tree)--tree[show accounts as a tree (default in simple reports)]'
'(--flat)--flat[show accounts as a list (default in multicolumn)]'
'(--drop)--drop=[flat mode, omit N leading account name parts]:drop n'
)
;;
activity)
;;
add)
args=(
'(--no-new-accounts)--no-new-accounts=[do not allow creating new accounts]'
)
;;
bal|balance)
args+=(
'(--change)--change[show balance change in each period (default)]'
'(--cumulative)--cumulative[show balance change accumulated across periods]'
'(-H --historical)'{-H,--historical}'[show historical ending balance in each period]'
'(--tree)--tree[show accounts as a tree (default in simple reports)]'
'(--flat)--flat[show accounts as a list (default in multicolumn)]'
'(-A --average)'{-A,--average}'[show a row average column (in multicolumn mode)]'
'(-T --row-total)'{-T,--row-total}'[show a row total column]'
'(-N --no-total)'{-N,--no-total}'[do not show the final total row]'
'(--drop)--drop=[in flat mode, omit N leading account name parts]:drop n'
'(--no-elide)--no-elide[tree mode, do not squash boring parent accounts]'
'(--format)--format=[in tree mode, use this custom line format]:custom line format'
'(-O --output-format)'{-O,--output-format}='[select the output format from txt, csv, html]:format'
'(-o --output-file)'{-o,--output-file}'=[write output to file]:file'
'(--pretty-tables)--pretty-tables[use unicode to display prettier tables]'
'(--sort-amount)--sort-amount[sort by amount instead of account code/name]'
'(--invert)--invert[display all amounts with reversed sign]'
'(--budget)--budget[show performance compared to budget goals]'
'(--show-unbudgeted)--show-unbudgeted[with --budget, show unbudgeted accounts also]'
)
;;
bl|balancesheet|balancesheetequity)
args+=(
'(--change)--change[show balance change in each period (default)]'
'(--cumulative)--cumulative[show balance change accumulated across periods]'
'(-H --historical)'{-H,--historical}'[show historical ending balance in each period]'
'(--tree)--tree[show accounts as a tree (default in simple reports)]'
'(--flat)--flat[show accounts as a list (default in multicolumn)]'
'(-A --average)'{-A,--average}'[show a row average column (in multicolumn mode)]'
'(-T --row-total)'{-T,--row-total}'[show a row total column]'
'(-N --no-total)'{-N,--no-total}'[do not show the final total row]'
'(--drop)--drop=[in flat mode, omit N leading account name parts]:drop n'
'(--no-elide)--no-elide[tree mode, do not squash boring parent accounts]'
'(--format)--format=[in tree mode, use this custom line format]:custom line format'
'(--sort-amount)--sort-amount[sort by amount instead of account code/name]'
)
;;
cashflow|cf|balancesheet|bs|incomestatement|is)
args+=(
'(--change)--change[show balance change in each period (default)]'
'(--cumulative)--cumulative[show balance change accumulated across periods]'
'(-H --historical)'{-H,--historical}'[show historical ending balance in each period]'
'(--tree)--tree[show accounts as a tree (default in simple reports)]'
'(--flat)--flat[show accounts as a list (default in multicolumn)]'
'(-A --average)'{-A,--average}'[show a row average column (in multicolumn mode)]'
'(-T --row-total)'{-T,--row-total}'[show a row total column]'
'(-N --no-total)'{-N,--no-total}'[do not show the final total row]'
'(--drop)--drop=[in flat mode, omit N leading account name parts]:drop n'
'(--no-elide)--no-elide[tree mode, do not squash boring parent accounts]'
'(--format)--format=[in tree mode, use this custom line format]:custom line format'
'(--sort-amount)--sort-amount[sort by amount instead of account code/name]'
)
;;
import)
args=(
'(--dry-run)--dry-run[just show the transactions to be imported]'
)
;;
is|incomestatement)
args+=(
'(--change)--change[show balance change in each period (default)]'
'(--cumulative)--cumulative[show balance change accumulated across periods]'
'(-H --historical)'{-H,--historical}'[show historical ending balance in each period]'
'(--tree)--tree[show accounts as a tree (default in simple reports)]'
'(--flat)--flat[show accounts as a list (default in multicolumn)]'
'(-A --average)'{-A,--average}'[show a row average column (in multicolumn mode)]'
'(-T --row-total)'{-T,--row-total}'[show a row total column]'
'(-N --no-total)'{-N,--no-total}'[do not show the final total row]'
'(--drop)--drop=[in flat mode, omit N leading account name parts]:drop n'
'(--no-elide)--no-elide[tree mode, do not squash boring parent accounts]'
'(--format)--format=[in tree mode, use this custom line format]:custom line format'
'(--sort-amount)--sort-amount[sort by amount instead of account code/name]'
)
;;
print)
args=(
'(-m --match)'{-m,--match}'[show the transaction whose description is most similar]:string'
'(--new)--new[show only newer-dated transactions added in each file since last run]'
'(-x --explicit)'{-x,--explicit}'[show all amounts explicitly]'
'(-O --output-format)'{-O,--output-format}='[select the output format from txt, csv, html]:format'
'(-o --output-file)'{-o,--output-file}'=[write output to file]:file'
)
;;
register|reg)
args+=(
'(--cumulative)--cumulative[show balance change accumulated across periods]'
'(-H --historical)'{-H,--historical}'[show historical ending balance in each period]'
'(-A --average)'{-A,--average}'[show a row average column (in multicolumn mode)]'
'(-r --related)'{-r,--related}'[show postings'\'' siblings instead]'
'(-w --width)'{-w,--width}'=[set output width to 120, or N]:width (default 80)'
'(-O --output-format)'{-O,--output-format}='[select the output format from txt, csv, html]:format'
'(-o --output-file)'{-o,--output-file}'=[write output to file]:file'
)
;;
stats)
args=(
'(-o --output-file)'{-o,--output-file}'=[write output to file]:file'
)
;;
# fallback to _default
*) _arguments -C -A "-*" "$args[@]" \
'*: :_default' && ret=0
continue
esac
_arguments -C -A "-*" "$args[@]" \
'*:query patterns:->query' && ret=0
;;
query)
local -a accs keywords
keywords=(
'acct\::match account names'
'code\::match by transaction code'
'desc\::match transaction descriptions'
'tag\::match by tag name'
'depth\::match at or above depth'
'status\::match cleared/uncleared transactions'
'real\::match real/virtual transactions'
'empty\::match if amount is/is not zero'
'amt\::match transaction amount'
'cur\::match by currency'
)
if compset -P 'amt:'; then
_message 'match amount (<, <=, >, >=, add sign for non-absolute match)' && ret=0
continue
fi
if compset -P '(#b)(code|desc|tag|depth|status|real|empty):'; then
_message "'$match[1]' parameter" && ret=0
continue
fi
accs=( ${(f)"$(_call_program hledger hledger accounts $PREFIX 2>/dev/null)"} )
if (( $? )); then
_message "error fetching accounts from hledger"
fi
# decided against partial matching here. these lines can
# be uncommented to complete subaccounts hierarchically
# (add -S '' -q to the compadd below, too)
# if compset -P '(#b)(*):'; then
# accs=( ${(M)accs:#$match[1]:*} )
# accs=( ${accs#$IPREFIX} )
# fi
# accs=( ${accs%%:*} )
_wanted accounts expl "accounts" compadd -a accs && ret=0
_describe "matcher keywords" keywords -S '' && ret=0
# not is special, it doesn't need the -S ''
keywords=(
'not:negate expression'
)
_describe "matcher keywords" keywords && ret=0
;;
esac
done
return ret

53
src/_homestead Normal file
View File

@ -0,0 +1,53 @@
#compdef homestead
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for homestead (http://laravel.com/docs/homestead).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * loranger (https://github.com/loranger)
#
# ------------------------------------------------------------------------------
_homestead_get_command_list () {
homestead --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
}
_homestead () {
if [ -f homestead ]; then
compadd `_homestead_get_command_list`
fi
}
compdef _homestead php homestead
compdef _homestead homestead

218
src/_httpie Normal file
View File

@ -0,0 +1,218 @@
#compdef http https=http
# ------------------------------------------------------------------------------
# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for httpie 3.2.2 (https://httpie.io/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Akira Maeda <https://github.com/glidenote>
# * Valodim <https://github.com/Valodim>
# * Claus Klingberg <https://github.com/cjk>
# * Shohei YOSHIDA <https://github.com/syohex>
#
# ------------------------------------------------------------------------------
_httpie_params() {
local ret=1 expl
# or a url
if (( CURRENT <= NORMARG+1 )) && [[ $words[NORMARG] != *:* ]] ; then
_httpie_urls && ret=0
# regular param, if we already have a url
elif (( CURRENT > NORMARG )); then
# if the suffix is precisely : this is shorthand for a header
if [[ -prefix ':' ]]; then
PREFIX=
SUFFIX=:
fi
# if we are in front of a : (possibly due to the PREFIX move before)
if [[ -suffix ':' ]]; then
# this is rather buggy with normal tab behavior :
compstate[insert]=menu
_wanted http_header expl 'HTTP Header' \
compadd -s ':' -S '' -- Content-Type Cookie && return 0
fi
# ignore all prefix stuff
compset -P '(#b)([^:@=]#)'
local name=$match[1]
if compset -P '='; then
_message "$name data field value"
elif compset -P '@'; then
_files
elif compset -P ':=@'; then
_files
elif compset -P ':='; then
_message "$name raw json data"
elif compset -P '=='; then
_message "$name url parameter value"
elif compset -P ':'; then
_message "$name header content"
else
typeset -a ops
ops=(
'=:data field'
'\::header'
'==:request parameter'
'@:data file field'
'\:=:raw json field'
'\:=@:raw json field file path'
)
_describe -t httpparams "parameter types" ops -Q -S ''
fi
ret=0
fi
# first arg may be a request method
(( CURRENT == NORMARG )) &&
_wanted http_method expl 'Request Method' \
compadd GET POST PUT DELETE HEAD OPTIONS TRACE CONNECT PATCH LINK UNLINK && ret=0
return $ret
}
_httpie_urls() {
local ret=1
if ! [[ -prefix [-+.a-z0-9]#:// ]]; then
local expl
compset -S '[^:/]*' && compstate[to_end]=''
_wanted url-schemas expl 'URL schema' compadd -S '' http:// https:// && ret=0
else
_urls && ret=0
fi
return $ret
}
_httpie_printflags() {
local ret=1
# not sure why this is necessary, but it will complete "-pH" style without it
[[ $IPREFIX == "-p" ]] && IPREFIX+=" "
compset -P '(#b)([a-zA-Z]#)'
local -a flags
[[ $match[1] != *H* ]] && flags+=( "H:request headers" )
[[ $match[1] != *B* ]] && flags+=( "B:request body" )
[[ $match[1] != *h* ]] && flags+=( "h:response headers" )
[[ $match[1] != *b* ]] && flags+=( "b:response body" )
_describe -t printflags "print flags" flags -S '' && ret=0
return $ret
}
_httpie_styles() {
local -a styles=(abap algol algol_nu arduino auto autumn borland bw
colorful default dracula emacs friendly
friendly_grayscale fruity github-dark gruvbox-dark gruvbox-light
igor inkpot lilypond lovelace manni material monokai
murphy native nord nord-darker one-dark paraiso-dark paraiso-light
pastie perldoc pie pie-dark pie-light rainbow_dash
rrt sas solarized solarized-dark solarized-light stata
stata-dark stata-light tango trac vim vs xcode zenburn)
_describe -t styles 'style' styles
}
integer NORMARG
_arguments -n -C -s \
'(-j --json -f)'{-j,--json}'[Data items from the command line are serialized as a JSON object]' \
'(-f --form -j)'{-f,--form}'[Data items from the command line are serialized as form fields]' \
'--multipart[Similar to --form, but always sends a multipart/form-data request]' \
'--boundary=[Specify a custom boundary string for multipart/form-data requests]' \
'--raw=[This option allows you to pass raw request data without extra processing]' \
'(-x --compress)'{-x,--compress}'[Content compressed with Deflate algorithm]' \
'--pretty=[Controls output processing]:output format:(all colors format none)' \
'(-s --style)'{-s,--style}'=[Output coloring style]:STYLE:_httpie_styles' \
'--unsorted[Disables all sorting while formatting output]' \
'--sorted[Re-enables all sorting options while formatting output]' \
'--response-charset=[Override the response encoding for terminal display purposes]:encoding' \
'--response-mime=[Override the response mime type for coloring and formatting for the terminal]:mine' \
'--format-options=[Controls output formatting]:format' \
'(-p --print)'{-p,--print}'=[String specifying what the output should contain]:print flags:_httpie_printflags' \
'(-v --verbose)'{-v,--verbose}'[Print the whole request as well as the response]' \
'(-p -h --headers)'{-h,--headers}'[Print only the response headers]' \
'(-p -m --meta)'{-m,--meta}'[Print only the response metadata]' \
'(-p -b --body)'{-b,--body}'[Print only the response body]' \
'--all[By default, only the final request/response is shown]' \
'(-S --stream)'{-S,--stream}'[Always stream the output by line, i.e., behave like `tail -f`]' \
'(-o --output)'{-o,--output}'=[Save output to FILE]:output file:_files' \
'(-d --download)'{-d,--download}'=[Do not print the response body to stdout]' \
'(-c --continue)'{-c,--continue}'[Resume an interrupted download]' \
'(-q --quiet)'{-q,--quiet}'[Do not print to stdout or stderr, except for errors and warnings when provided once]' \
'(--session-read-only)--session=[Create, or reuse and update a session]:session name (or path)' \
'(--session)--session-read-only=[Create or read a session without updating it form the request/response exchange]:session name (or path)' \
'(-a --auth)'{-a,--auth}'=[If only the username is provided (-a username)]:USER\:PASS' \
'--auth-type=[The authentication mechanism to be used. Defaults to "basic"]:AUTH-TYPE:(basic digest bearer)' \
'--ignore-netrc[Ignore credentials from .netrc]' \
'--offline[Build the request and print it but do not actually send it]' \
'--proxy=[String mapping protocol to the URL of the proxy]:PROXY' \
'(-F --follow)'{-F,--follow}'[Allow full redirects]' \
'--max-redirects=[A limit of redirects]:number:' \
'--max-headers=[The maximum number of response headers to be read]:number:' \
"--verify=[Enable or disable verification of ssl certificates]:verify certificate:(yes no)" \
'--ssl=[The desired protocol version to use]:ssl version:(ssl2.3 tls1 tls1.1 tls1.2)' \
'--ciphers=[A string in the OpenSSL cipher list format]:ciphers' \
'--cert=[Specify a local cert to use as client side SSL certificate]:cert:_files' \
'--cert-key=[Specify the private to key to use with SSL]:cert key:_files' \
'--cert-key-pass=[The passphrase to be used to with the given private key]' \
'--timeout=[Float describes the timeout of the request (Use socket.setdefaulttimeout() as fallback)]:timeout (seconds)' \
'--check-status[This flag instructs HTTPie to also check the HTTP status code and exit with an error if the status indicates one]' \
'--path-as-is[Bypass dot segment URL squashing]' \
'--chunked[Enable streaming via chunked transfer encoding]' \
'(-I --ignore-stdin)'{-I,--ignore-stdin}'[Do not attempt to read stdin]' \
'(- *)--help[show help message]' \
'(- *)--manual[show the full manual]' \
"(- *)--version[show program's version number and exit]" \
'--traceback[Prints exception traceback should one occur]' \
'--default-scheme=[The default scheme to use if not specified in the URL]:scheme:' \
'--debug[Prints exception traceback should one occur and other information useful for debugging HTTPie itself]' \
'*:args:_httpie_params' && return 0
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

109
src/_ibus Normal file
View File

@ -0,0 +1,109 @@
#compdef ibus
# ------------------------------------------------------------------------------
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ibus 1.5.27 (https://github.com/ibus/ibus).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Tomo Kazahaya <https://github.com/tomonacci>
#
# ------------------------------------------------------------------------------
# The completion of "ibus emoji --lang=" depends on _language_codes from
# https://github.com/zsh-users/zsh-completions.
local context state state_descr line
typeset -A opt_args
local curcontext=$curcontext
_arguments -C \
":command:(($(ibus help|sed -ne 's/^ \(\S\+\) \+\(.*\)/"\1\\:\2"/p')))" \
'*:: :->args' \
&& return
case $state in
args)
case $line[1] in
(engine)
_arguments \
":engine:(($(ibus list-engine|sed -ne 's/:/\\\\:/g' -e 's/^ \(\S\+\) - \(.*\)$/"\1:\2"/p')))" \
&& return
;;
(start|restart)
_arguments \
'--type=[start or restart daemon type with direct or systemd type]: :(direct systemd)' \
'--file=[start or restart daemon with SYSTEMD_SERVICE file]: :_files' \
'--verbose[Show debug message]' \
'(- *)--help[Show help message]' \
&& return
;;
(read-cache)
_arguments \
'--system[show the content of the system registry cache]' \
'--file=[custom registry cache to show]:registry cache:_files' \
'(- *)--help[Show help message]' \
&& return
;;
(write-cache)
_arguments \
'--system[save the system registry cache]' \
'--file=[custom registry cache to save]:registry cache:_files' \
'(- *)--help[Show help message]' \
&& return
;;
(emoji)
_arguments \
'--font=[emoji font]:emoji font: ' \
'--lang=[language of emoji annotations]:language:_language_codes ISO-639-1' \
'--partial-match[match annotations with a partial string]' \
'(- *)--help[Show help message]' \
&& return
;;
(im-module)
_arguments \
'--type=[Set im-module TYPE]: :(gtk2 gtk3 gtk4)' \
'(- *)--help[Show help message]' \
&& return
;;
esac
;;
esac
return 1
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

87
src/_include-what-you-use Normal file
View File

@ -0,0 +1,87 @@
#compdef include-what-you-use iwyu
# Copyright 2018 CERN for the benefit of the LHCb Collaboration.
# All rights reserved.
#
# Developed by:
#
# CERN LBC group
#
# CERN
#
# https://home.web.cern.ch/
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# with the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimers.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimers in the
# documentation and/or other materials provided with the distribution.
#
# * Neither the names of the LBC group, CERN, nor the names of its
# contributors may be used to endorse or promote products derived from
# this Software without specific prior written permission.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
# THE SOFTWARE.
#
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization or
# submit itself to any jurisdiction.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for include-what-you-use 0.19 (https://github.com/include-what-you-use/include-what-you-use).
#
# ------------------------------------------------------------------------------
# TODO:
# - prevent _iwyu_opts from running once the first clang option got passed
_iwyu_opts() {
_arguments \
'--check_also=[print iwyu-violation info for files matching the given glob pattern]:glob pattern:' \
'--keep=[tells iwyu to always keep these includes]:glob pattern' \
'*'"--mapping_file=[iwyu mapping file]:iwyu mapping file:_path_files -g '*(/) *.imp'" \
"--no_default_mappings[do not add iwyu's default mappings]" \
'--pch_in_code[mark the first include in a translation unit as a precompiled header]' \
'--prefix_header_includes=[what to do with command line includes]:command line include treatment:(add keep remove)' \
"--transitive_includes_only[do not suggest that a file add headers that aren't already visible]" \
'--max_line_length=[maximum line length for includes]:a number:' \
'--comment_style=[set verbosity of "why" comments to]:comment style:(none short long)' \
'--no_comments[do not add "why" comments]' \
'--no_fwd_decls[do not use forward declarations]' \
'--verbose=[the higher the level, the more output]:a number:' \
'--quoted_includes_first[when sorting includes, place quoted ones first]' \
'--cxx17ns[suggests the more concise syntax introduced in C++17]' \
'--error=-[exit with N(default: 1) for iwyu violations]::exit code' \
'--error_always=-[always exit with N (default: 1)]::exit code' \
'--debug=[debug flags]:flag' \
'--regex=[use specified regex dialect in iwyu]:dialect:(llvm ecmascript)' \
'*: :_files'
}
_alternative \
'iwyu:iwyu_option:_iwyu_opts' \
'gcc:gcc_option:_gcc' \
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

199
src/_inxi Normal file
View File

@ -0,0 +1,199 @@
#compdef inxi
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script of inxi 3.3.21-00 (https://smxi.org/docs/inxi.htm)
#
# a full featured CLI system information tool
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Oleksii Filonenko <brightone@protonmail.com>
#
# ------------------------------------------------------------------------------
_inxi() {
typeset -A opt_args
local context state line
local curcontext="$curcontext"
local ret=1
local colors=($(seq 0 42))
_arguments -C -s \
'(-A --audio)'{-A,--audio}"[Show Audio/sound card(s) information]" \
'(-b --basic)'{-b,--basic}"[Show basic output, short form]" \
'(-B --battery)'{-B,--battery}"[Show system Battery information]" \
'(-C --cpu)'{-C,--cpu}"[Show full CPU output]" \
'(-d --disk-full --optical)'{-d,--disk-full,--optical}"[Show hard + optical drive info]" \
'(-D --disk)'{-D,--disk}"[Show hard Disk info]" \
'(-E --bluetooth)'{-E,--bluetooth}'[Show bluetooth device data report, if available]' \
'--edid[Full graphics data, triggers -a -G]' \
'(-f --flags)'{-f,--flags}"[Show all CPU flags used]" \
'(-F --full)'{-F,--full}"[Show Full output]" \
'(-G --graphics)'{-G,--graphics}"[Show Graphic card(s) information]" \
'(- *)'{-h,--help}"[Show list of command-line options]" \
'(-i --ip)'{-i,--ip}"[Show WAN IP address and local interfaces]" \
'(-I --info)'{-I,--info}"[Show Information: processes, uptime, etc.]" \
'(-j --swap)'{-j,--swap}'[Swap in use]' \
'(-J --usb)'{-J,--usb}"[Show USB data for attached Hubs and Devices]" \
'(-l --label)'{-l,--label}"[Show partition labels]" \
'(-L --logical)'{-L,--logical}'[Logical devices]' \
'(-m --memory)'{-m,--memory}"[Memory (RAM) data]" \
'(--memory-modules --mm)'{--memory-modules,--mm}'[Memory (RAM) data. Exclude empty module slots]' \
'(--memory-short --ms)'{--memory-short,--ms}'[Memory (RAM) data. Show only short Memory RAM report]' \
'(-M --machine)'{-M,--machine}"[Show Machine data]" \
'(-n --network-advanced)'{-n,--network-advanced}"[Show Advanced Network card information]" \
'(-N --network)'{-N,--network}"[Show Network card(s) information]" \
'(-o --unmounted)'{-o,--unmounted}"[Show unmounted partition information]" \
'(-p --partitions-full)'{-p,--partitions-full}"[Show full Partition information]" \
'(-P --partitions)'{-P,--partitions}"[Show basic Partition information]" \
'(-r --repos)'{-r,--repos}"[Show distro repository data]" \
'(-R --raid)'{-R,--raid}"[Show RAID data]" \
"(- *)"--recommends"[Check inxi dependencies + recommends]" \
'(-s --sensors)'{-s,--sensors}"[Show output from configured sensors]" \
"--slots[Show PCI slots]" \
'(-S --system)'{-S,--system}"[Show System information]" \
'(-t --processes)'{-t+,--processes=}"[Show processes]:processes:((c\:'CPU only' m\:'Memory only' cm\:'CPU+memory'))" \
'(-u --uuid)'{-u,--uuid}"[Show partition UUIDs]" \
"(- *)"{-U,--update}"[Auto-update inxi]" \
"(- *)"{-V,--version}"[Show version of inxi]" \
'(-v --verbosity)'{-v+,--verbosity=}"[Script verbosity levels]:verbosity:_inxi_verbosity" \
'(-w --weather)'{-w,--weather}"[Adds weather line]" \
'(-W --weather-location)'{-W+,--weather-location=}"[Get weather/time for an alternate location]:weather location: " \
"--weather-source=[Change weather data source]: :(1 2 3 4 5 6 7 8 9)" \
"--weather-unit=[Set weather unit]:weather unit:((m\:metric i\:imperial mi\:'metric (imperial)' im\:'imperial (metric)'))" \
"--host[Turns on hostname in System line]" \
"--no-host[Turns off hostname in System line]" \
{-z,--filter}"[Adds security filters]" \
'(--za --filter-all)'{--za,--filter-all}'[Shortcut triggers, -z, --zl, --zu, --zv]' \
'(--zl --filter-label)'{--zl,--filter-label}'[Filter out partition labels in -j, -o, -p, -P, -Sa]' \
'(--zu --filter-uuid)'{--zu,--filter-uuid}'[Filter out partition UUIDs in -j, -o, -p, -P, -Sa]' \
'(--zv --filter-vulnerabilities)'{--zv,--filter-vulnerabilities}'[Filters out Vulnerabilities report in -Ca]' \
'(-Z --no-filter)'{-Z,--no-filter}"[Disable output filters]" \
'(-c --color)'{-c+,--color=}"[Set color scheme]:color:(${colors[*]})" \
"--indent=[Change default wide mode primary indentation width]:integer:(11 12 13 14 15 16 17 18 19 20)" \
"--indents=[Change wrapped mode primary indentation width]:integer:(0 1 2 3 4 5 6 7 8 9 10)" \
"--limit[Limit max IP addresses for -i]:limit (-1 removes the limit): " \
'(--max-wrap --wrap-max)'{--max-wrap,--warp-max}='[Set maximum width where inxi autowraps line starters]' \
"--output[Change data output type]:type:(json screen xml)" \
"--output-file[Path to output file]:output file:->output_file" \
"--partition-sort[Change default sort order of partition output]:order:_inxi_partition_sort" \
'(-y --width)'{-y+,--width=}"[Set width override]:columns (80 minimum): " \
'(-Y --height)'{-Y+,--height=}"[Output height control]:" \
\*{-x,--extra}"[Extra data options]" \
'(-a --admin)'{-a,--admin}"[Admin extra data options]:admin option:->admin" \
"--alt[Bypass a downloader option]:downloader:_inxi_alt" \
'--bt-tool[Force use of given tool for bluetooth report]' \
'(--no-dig --dig)--dig[Overrides configuration item NO_DIG]' \
"--display[Get display data out of X]:\:<integer>: " \
"--dmidecode[Force use of dmidecode]" \
"--downloader[Force inxi to use a specific downloader]:downloader:(curl fetch perl wget)" \
'--force[Force use items]:' \
'--hddtemp[Force use of hddtemp for disk temps]' \
'(--no-html-wan --html-wan)--html-wan[Overrides configuration item NO_HTML_WAN]' \
'(--dig --no-dig)--no-dig[Skip dig for WAN IP checks]' \
'--no-doas[Skip internal program use of doas features]' \
'(--no-html-wan --html-wan)--no-html-wan[Skip HTML IP sources for WAN IP checks]' \
"--no-ssl[Skip SSL certificate checks]" \
"--no-sudo[Skip internal program use of sudo features]" \
'--rpm[Force use of disabled package manager counts for packages feature with -rx/-Ix ]' \
'--sensors-default[Removes configuration item SENSORS_USE and SENSORS_EXCLUDE]' \
'--sensors-exclude[Exclude supplied sensor array for -s output]' \
'--sensors-use[Use only supplied sensor array for -s output]' \
"--sleep[Change CPU sleep time]:sleep time (usually in decimals): " \
"--tty[Forces internal IRC flag to off]" \
"--usb-sys[Forces the USB data generator to use /sys as data source]" \
"--usb-tool[Forces the USB data generator to use lsusb as data source]" \
"--wan-ip-url[Force -i to use supplied URL as WAN ip source]:URL: " \
"--wm[Force System item wm to use wmctrl as data source]" \
"--dbg[Debug downloader failures]:level:(1)" \
"--debug[On screen debugger output]:level:(1 2 3 10 11 20 21 22)" \
"--debug-proc[Force debugger to parse /proc directory data when run as root]" \
"--debug-proc-print[Use this to locate file that /proc debugger hangs on]" \
"--debug-no-exit[Skip exit on error when running debugger]" \
"--debug-no-proc[Skip /proc debugging in case of a hang]" \
"--debug-no-sys[Skip /sys debugging in case of a hang]" \
"--debug-sys[Force PowerPC debugger parsing of /sys as sudo/root]" \
"--debug-proc[Force debugger to parse /proc directory data when run as root]" \
"--debug-sys-print[Use this to locate file that /sys debugger hangs on]" \
"--ftp[Set alternate ftp upload location]:FTP URL: " \
&& ret=0
case "$state" in
(admin)
_arguments -s \
'-C[Adds CPU family, model-id, and stepping]' \
'-d[Adds logical and physical block size in bytes]' \
{-p,-P}'[Adds raw partition / filesystem block size]' \
&& ret=0
;;
(output_file)
_alternative \
"outputs:output file:((print\:'Print to stdout'))" \
"outputs:output file:_files"
;;
esac
return ret
}
(( $+functions[_inxi_partition_sort] )) ||
_inxi_partition_sort() {
local -a orders=(
'dev-base:/dev partition identifier'
'fs:partition filesystem'
'id:mount point of partition (default)'
'label:label of partition'
'percent-used:percentage of partition size used'
'size:KiB size of partition'
'uuid:UUID of the partition'
'used:KiB used of partition'
)
_describe 'sort order' orders
}
(( $+functions[_inxi_alt] )) ||
_inxi_alt() {
local -a downloaders=(
'40:Perl'
'41:Curl'
'42:Fetch'
'43:Wget'
'44:Curl, Fetch, and Wget'
)
_describe 'downloader' downloaders
}
(( $+functions[_inxi_verbosity] )) ||
_inxi_verbosity() {
local -a levels=(
'0:Short output, same as: inxi'
'1:Basic verbose, -S + basic CPU'
'2:Adds -N, -M, -B, same as: inxi -b'
'3:Adds -C, -n, -x'
'4:Adds -P, -D'
'5:Adds -A, -m, -s, -l, -u'
'6:Adds -p, -o, -d, --usb, -xx'
'7:Adds -i, -xxx'
'8:Adds -r, --slots, -tcm, --admin'
)
_describe 'script verbosity level' levels
}
_inxi "$@"
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

55
src/_ipcmk Normal file
View File

@ -0,0 +1,55 @@
#compdef ipcmk
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ipcmk, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - create various IPC resources
#
# Author:
# * Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments -s \
'(-M --shmem)'{-M,--shmem}'[Create a shared memory segment of size bytes]:size' \
'(-Q --queue)'{-Q,--queue}'[Create a message queue]' \
'(-S --semaphore)'{-S,--semaphore}'[Create a semaphore array with number of elements]:number' \
'(-p --mode)'{-p,--mode}'[Access permissions for the resource]:mode' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et
# Note: This script is useful only on systems with `ipcmk` (typically Linux).
# macOS does not include this command.

57
src/_ipcrm Normal file
View File

@ -0,0 +1,57 @@
#compdef ipcrm
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ipcrm, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - remove System V IPC objects
#
# Author:
# * Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments -s \
'(-a --all)'{-a,--all}'-[Remove all resources]:resource:(shm msg sem)' \
'(-M --shmem-key)'{-M,--shmem-key}'[Remove the shared memory segment created with shemkey]:shmkey' \
'(-m --shmem-id)'{-m,--shmem-id}'[Remove the shared memory segment identified by shmid]:shmid' \
'(-Q --queue-key)'{-Q,--queue-key}'[Remove the message queue created with msgkey]:msgkey' \
'(-q --queue-id)'{-q,--queue-id}'[Remove the message queue identified by msgid]:msgid' \
'(-S --semaphore-key)'{-S,--semaphore-key}'[Remove the semaphore created with semkey]:semkey' \
'(-s --semaphore-id)'{-s,--semaphore-id}'[Remove the semaphore identified by semid]' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \
'1:type:(shm msg sem)' \
'*:id'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

60
src/_ipcs Normal file
View File

@ -0,0 +1,60 @@
#compdef ipcs
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for ipcs, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - show information on IPC facilities
#
# Author:
# * Aditi Sharma (https://github.com/Aditi76117)
# ------------------------------------------------------------------------------
_arguments -s \
'(-i --id)'{-i,--id}'[Show full details on just one resource element identified by id]:id' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \
'(-m --shmems)'{-m,--shmems}'[Write information about active shared memory segments]' \
'(-q --queues)'{-q,--queues}'[Write information about active message queues]' \
'(-s --semaphores)'{-s,--semaphores}'[Write information about active semaphore sets]' \
'(-a --all -s --semaphores -q --queues -m --shmems)'{-a,--all}'[Write information about all three resources]' \
'(-c --creator)'{-c,--creator}'[Show creator and owner]' \
'(-l --limits)'{-l,--limits}'[Show resource limits]' \
'(-p --pid)'{-p,--pid}'[Show PIDs of creator and last operator]' \
'(-t --time)'{-t,--time}'[Write time information]' \
'(-u --summary)'{-u,--summary}'[Show status summary]' \
'(--human -b --bytes)'{-b,--bytes}'[Print the sizes in bytes rather than in a human-readable format]' \
'(--human -b --bytes)--human[Print sizes in human-readable format]'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

169
src/_jest Normal file
View File

@ -0,0 +1,169 @@
#compdef jest jest.js
# ------------------------------------------------------------------------------
# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Jest 29.7.0 (https://jestjs.io/)
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shotaro Aoyama (https://github.com/aoyama-val)
#
# ------------------------------------------------------------------------------
local curcontext=$curcontext state line ret=1
declare -A opt_args
_arguments -C -s \
'(- : *)'{-h,--help}'[Show help]' \
'(- : *)'--version'[Show version number]' \
--all'[The opposite of `onlyChanged`.]' \
--automock'[Automock all files by default.]' \
'(-b --bail)'{-b,--bail}'[Exit the test suite immediately after `n` number of failing tests.]' \
--cache'[Whether to use the transform cache.]' \
--cacheDirectory'[The directory where Jest should store its cached dependency information.]:directories:_dirs' \
--changedFilesWithAncestor'[Runs tests related to the current changes and the changes made in the last commit.]' \
--changedSince'[Runs tests related to the changes since the provided branch.]:string' \
--ci'[Whether to run Jest in continuous integration (CI) mode.]' \
--clearCache'[Clears the configured Jest cache directory and then exits.]' \
--clearMocks'[Automatically clear mock calls, instances, contexts and results before every test.]' \
--collectCoverageFrom'[A glob pattern relative to <rootDir> matching the files that coverage info needs to be collected from.]:string' \
'(--color --colors)'{--color,--colors}'[Forces test results output color highlighting (even if stdout is not a TTY).]' \
'(-c --config)'{-c,--config}'[The path to a jest config file specifying how to find and execute tests.]:files:_files' \
'(--coverage --collectCoverage)'{--coverage,--collectCoverage}'[Indicates that test coverage information should be collected and reported in the output.]' \
--coverageDirectory'[The directory where Jest should output its coverage files.]:directories:_dirs' \
--coveragePathIgnorePatterns'[An array of regexp pattern strings that are matched against all file paths before executing the test.]:array:' \
--coverageProvider'[Select between Babel and V8 to collect coverage]:choices:(babel v8)' \
--coverageReporters'[A list of reporter names that Jest uses when writing coverage reports.]:array' \
--coverageThreshold'[A JSON string with which will be used to configure minimum threshold enforcement for coverage results]:string' \
--debug'[Print debugging info about your jest config.]' \
--detectLeaks'[**EXPERIMENTAL**: Detect memory leaks in tests.]' \
--detectOpenHandles'[Print out remaining open handles preventing Jest from exiting at the end of a test run.]' \
'(--env --testEnvironment)'{--env,--testEnvironment}'[The test environment used for all tests.]:files:_files' \
--errorOnDeprecated'[Make calling deprecated APIs throw helpful error messages.]' \
'(-e --expand)'{-e,--expand}'[Use this flag to show full diffs instead of a patch.]' \
--filter'[Path to a module exporting a filtering function.]:string' \
--findRelatedTests'[Find related tests for a list of source files that were passed in as arguments.]' \
--forceExit'[Force Jest to exit after all tests have completed running.]' \
--globalSetup'[The path to a module that runs before All Tests.]:files:_files' \
--globalTeardown'[The path to a module that runs after All Tests.]:files:_files' \
--globals'[A JSON string with map of global variables that need to be available in all test environments.]:string' \
--haste'[A JSON string with map of variables for the haste module system]:string' \
--ignoreProjects'[Ignore the tests of the specified projects.]:array' \
--init'[Generate a basic configuration file]' \
--injectGlobals'[Should Jest inject global variables or not]' \
--json'[Prints the test results in JSON.]' \
--lastCommit'[Run all tests affected by file changes in the last commit made.]' \
--listTests'[Lists all tests Jest will run given the arguments and exits.]' \
--logHeapUsage'[Logs the heap usage after every test.]' \
--maxConcurrency'[Specifies the maximum number of tests that are allowed to run concurrently.]:number' \
'(-w --maxWorkers)'{-w,--maxWorkers}'[Specifies the maximum number of workers the worker-pool will spawn for running tests.]:string' \
--moduleDirectories'[An array of directory names to be searched recursively up from the requiring module'"'"'s location.]:directories:_dirs' \
--moduleFileExtensions'[An array of file extensions your modules use.]:array' \
--moduleNameMapper'[A JSON string with a map from regular expressions to module names or to arrays of module names that allow to stub out resources]:string' \
--modulePathIgnorePatterns'[An array of regexp pattern strings that are matched against all module paths before those paths are to be considered "visible" to the module loader.]:array' \
--modulePaths'[An array of absolute paths to additional locations to search when resolving modules.]:directories:_dirs' \
--no-cache'[Do not use the transform cache.]' \
--no-watchman'[Disable watchman for file crawling.]' \
--noStackTrace'[Disables stack trace in test results output]' \
--notify'[Activates notifications for test results.]' \
--notifyMode'[Specifies when notifications will appear for test results.]:string' \
'(-o --onlyChanged)'{-o,--onlyChanged}'[Attempts to identify which tests to run based on which files have changed in the current repository.]' \
'(-f --onlyFailures)'{-f,--onlyFailures}'[Run tests that failed in the previous execution.]' \
--openHandlesTimeout'[Print a warning about probable open handles if Jest does not exit cleanly after this number of milliseconds.]:number' \
--outputFile'[Write test results to a file when the --json option is also specified.]:files:_files' \
--passWithNoTests'[Will not fail if no tests are found (for example while using `--testPathPattern`.)]' \
--preset'[A preset that is used as a base for Jest'"'"'s configuration.]:string' \
--prettierPath'[The path to the "prettier" module used for inline snapshots.]:string' \
--projects'[A list of projects that use Jest to run all tests of all projects in a single instance of Jest.]:array' \
--randomize'[Shuffle the order of the tests within a file.]' \
--reporters'[A list of custom reporters for the test suite.]:array' \
--resetMocks'[Automatically reset mock state before every test.]' \
--resetModules'[If enabled, the module registry for every test file will be reset before running each individual test.]' \
--resolver'[A JSON string which allows the use of a custom resolver.]:string' \
--restoreMocks'[Automatically restore mock state and implementation before every test.]' \
--rootDir'[The root directory that Jest should scan for tests and modules within.]:directories:_dirs' \
--roots'[A list of paths to directories that Jest should use to search for files in.]:array' \
'(-i --runInBand)'{-i,--runInBand}'[Run all tests serially in the current process.]' \
--runTestsByPath'[Used when provided patterns are exact file paths.]' \
--runner'[Allows to use a custom runner instead of Jest'"'"'s default test runner.]:string' \
--seed'[Sets a seed value that can be retrieved in a tests file via `jest.getSeed()`.]:number' \
--selectProjects'[Run the tests of the specified projects.]:array' \
--setupFiles'[A list of paths to modules that run some code to configure or set up the testing environment before each test.]:files:_files' \
--setupFilesAfterEnv'[A list of paths to modules that run some code to configure or set up the testing framework before each test]:files:_files' \
--shard'[Shard tests and execute only the selected shard]:files:_files' \
--showConfig'[Print your jest config and then exits.]' \
--showSeed'[Prints the seed value in the test report summary.]' \
--silent'[Prevent tests from printing messages through the console.]' \
--skipFilter'[Disables the filter provided by --filter.]' \
--snapshotSerializers'[A list of paths to snapshot serializer modules Jest should use for snapshot testing.]:files:_files' \
--testEnvironmentOptions'[A JSON string with options that will be passed to the `testEnvironment`.]:string' \
--testFailureExitCode'[Exit code of `jest` command if the test run failed]:string' \
--testLocationInResults'[Add `location` information to the test results]' \
--testMatch'[The glob patterns Jest uses to detect test files.]:array' \
'(-t --testNamePattern)'{-t,--testNamePattern}'[Run only tests with a name that matches the regex pattern.]:string' \
--testPathIgnorePatterns'[An array of regexp pattern strings that are matched against all test paths before executing the test.]:array' \
--testPathPattern'[A regexp pattern string that is matched against all tests paths before executing the test.]:array' \
--testRegex'[A string or array of string regexp patterns that Jest uses to detect test files.]:array' \
--testResultsProcessor'[Allows the use of a custom results processor.]:string' \
--testRunner'[Allows to specify a custom test runner.]:string' \
--testSequencer'[Allows to specify a custom test sequencer.]:string' \
--testTimeout'[This option sets the default timeouts of test cases.]:number' \
--transform'[A JSON string which maps from regular expressions to paths to transformers.]:string' \
--transformIgnorePatterns'[An array of regexp pattern strings that are matched against all source file paths before transformation.]:array' \
--unmockedModulePathPatterns'[An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them.]:array' \
'(-u --updateSnapshot)'{-u,--updateSnapshot}'[Use this flag to re-record snapshots.]' \
--useStderr'[Divert all output to stderr.]' \
--verbose'[Display individual test results with the test suite hierarchy.]' \
--watch'[Watch files for changes and rerun tests related to changed files.]' \
--watchAll'[Watch files for changes and rerun all tests.]' \
--watchPathIgnorePatterns'[An array of regexp pattern strings that are matched against all paths before trigger test re-run in watch mode.]:array' \
--watchman'[Whether to use watchman for file crawling.]' \
--workerThreads'[Whether to use worker threads for parallelization.]' \
'*: :->file' \
&& ret=0
case $state in
(file)
(( CURRENT > 0 )) && line[CURRENT]=()
line=( ${line//(#m)[\[\]()\\*?#<>~\^\|]/\\$MATCH} )
_files -F line && ret=0
;;
esac
return ret
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et

View File

@ -1,34 +1,9 @@
#compdef jmeter
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for JMeter (http://jakarta.apache.org/jmeter).
# Completion script for JMeter (https://jmeter.apache.org/).
#
# Status: incomplete
#
@ -42,6 +17,7 @@
_arguments \
'(- 1 *)--?[print command line options and exit]' \
'(- 1 *)'{-h,--help}'[print usage information and exit]' \
'(- 1 *)'{-v,--version}'[print the version information and exit]' \
{-p,--propfile}'[the jmeter property file to use]:properties file:_files -g "*.properties"' \
@ -49,21 +25,29 @@ _arguments \
{-t,--testfile}'[the jmeter test plan file to run]:JMeter test plan file:_files -g "*.jmx"' \
{-j,--jmeterlogfile}'[the jmeter log file]: :_files -g "*.log"' \
{-l,--logfile}'[the file to log samples to]: :_files -g "*.jtl"' \
{-i,--jmeterlogconf}'[jmeter logging configuration file]: :_files -g "*.xml"' \
{-j,--jmeterlogfile}'[jmeter run file]: :_files -g "*.log"' \
{-n,--nongui}'[run JMeter in nongui mode]' \
{-s,--server}'[run the JMeter server]' \
{-E,--proxyScheme}'[set a proxy scheme to use for the proxy server]:scheme' \
{-H,--proxyHost}'[set a proxy server for JMeter to use]: :_hosts' \
{-P,--proxyPort}'[set proxy server port for JMeter to use]:number' \
{-N,--nonProxyHosts}'[set non proxy host list]:host' \
{-u,--username}'[set username for proxy server that JMeter is to use]:username:_users' \
{-a,--password}'[set password for proxy server that JMeter is to use]:password' \
{-J-,--jmeterproperty}'[define additional JMeter properties]:argument=value' \
{-G-,--globalproperty}'[define Global properties (sent to servers)]:argument=value' \
{-D-,--systemproperty}'[define additional System properties]:argument=value' \
{-S,--systemPropertyFile}'[a property file to be added as System properties]:properties file:_files -g "*.properties"' \
{-f,--forceDeleteResultFile}'[force delete existing results files and web report folder]' \
{-L,--loglevel}'[define loglevel]:[category=]level' \
{-r,--runremote}'[start remote servers (as defined by the jmeter property remote_hosts)]' \
{-R,--remotestart}'[start these remote servers (overrides remote_hosts)]:remote servers list' \
{-d,--homedir}'[the JMeter home directory to use]: :_files -/' \
{-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]'
{-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]' \
{-g,--removeonly}'[generate report dashboard only, from a test results file]: :_files' \
{-e,--reportatendofloadtests}'[generate report dashboard after load test]' \
{-o,--reportoutputfolder}'[output folder for report dashboard]: :_files -/'
# Local Variables:
# mode: Shell-Script

View File

@ -1,35 +1,10 @@
#compdef jmeter-plugins
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for jmeter-plugins command line tool 0.4.2
# (http://code.google.com/p/jmeter-plugins).
# (https://jmeter-plugins.org/).
#
# ------------------------------------------------------------------------------
# Authors

View File

@ -1,34 +1,9 @@
#compdef jonas
# ------------------------------------------------------------------------------
# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for JOnAS 5.2 (http://jonas.ow2.org).
# Completion script for JOnAS 5.2 (https://jonas.ow2.org/).
#
# ------------------------------------------------------------------------------
# Authors
@ -95,7 +70,7 @@ case "$state" in
'-username[set the username when authentication is required]: :_users' \
'-password[set the password when authentication is required]:password' \
'-registry[set the registry URL]: :_urls' \
'-protocol[set the protocol name]:protocol:((jrmp\:JRE\ implementation\ of\ RMI\ on\ the\ JRMP\ protocol\ \(default\) iiop\:JacORB\ implementation\ of\ RMI\ over\ the\ IIOP\ protocol irmi\:Oracle\ JRE\ independant\ implementation\ of\ RMI))' \
'-protocol[set the protocol name]:protocol:((jrmp\:JRE\ implementation\ of\ RMI\ on\ the\ JRMP\ protocol\ \(default\) iiop\:JacORB\ implementation\ of\ RMI\ over\ the\ IIOP\ protocol irmi\:Oracle\ JRE\ independent\ implementation\ of\ RMI))' \
'-a[deploy an application from a given filepath on the current server, or on another target in the domain if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
'-r[undeploy a previously deployed application from the current server or from the specified target if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
'-gc[run the garbage collector on the current JOnAS server]' \

66
src/_jrnl Normal file
View File

@ -0,0 +1,66 @@
#compdef jrnl
# ------------------------------------------------------------------------------
# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for jrnl a simple journal application for your command line. (https://maebert.github.io/jrnl/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Jindřich Pilař (https://github.com/JindrichPilar)
#
# ------------------------------------------------------------------------------
_jrnl() {
_arguments -C \
'(- 1 *)'-h"[Show help and exit]" \
'(- 1 *)'-v"[Prints version information and exits]" \
'(- 1 *)'-ls"[Displays accessible journals]" \
'(- 1 *)'-d"[Execute in debug mode]" \
'(- 1 *)'--tags"[Returns a list of all tags and number of occurrences]" \
"--short[Show only titles or line containing the search]" \
"-from[View entries after this date]:date:" \
"-until[View entries before this date]:date:" \
"-to[View entries before this date]:date:" \
"-on[View entries on this date]:date:" \
"-and[Filter by tags using AND (default: OR)]" \
"-starred[Show only starred entries]" \
"-n[Shows the last n entries matching the filter. And '-3' have the same effect.]":number: \
"--export[Export your journal. TYPE can be json, markdown text.]:format:(json markdown text)" \
"-o[Optionally specifies output file when using --export If OUTPUT is a directory, exports each entry in individual file instead.]:output file:" \
"--encrypt[Encrypts your existing journal with a new pass]" \
"--decrypt[Decrypts your journal and stores it in plain text]" \
"--edit[Opens your editor to edit the selected entries.]" \
}
_jrnl

Some files were not shown because too many files have changed in this diff Show More