summaryrefslogtreecommitdiff
path: root/plugins/cargo/cargo.plugin.zsh
diff options
context:
space:
mode:
authorZaki Manian <zaki@manian.org>2016-06-14 10:53:58 +0200
committerMarc Cornellà <marc.cornella@live.com>2016-10-04 00:15:46 +0200
commit915b0e46f275d19e66f8ad7762edc4fcb28967e6 (patch)
tree78c2f7c0bbcdff8e02a2b7b95ddb4dbfcff4ec89 /plugins/cargo/cargo.plugin.zsh
parent0887a7eb504debd8714bb914b99a2d6343f6b131 (diff)
downloadzsh-915b0e46f275d19e66f8ad7762edc4fcb28967e6.tar.gz
zsh-915b0e46f275d19e66f8ad7762edc4fcb28967e6.tar.bz2
zsh-915b0e46f275d19e66f8ad7762edc4fcb28967e6.zip
Add completion for cargo, the rust build tool
Copy of the official repository: https://github.com/rust-lang/cargo/tree/master/src/etc Signed-off-by: Marc Cornellà <marc.cornella@live.com>
Diffstat (limited to 'plugins/cargo/cargo.plugin.zsh')
-rw-r--r--plugins/cargo/cargo.plugin.zsh22
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/cargo/cargo.plugin.zsh b/plugins/cargo/cargo.plugin.zsh
deleted file mode 100644
index e1dc953dd..000000000
--- a/plugins/cargo/cargo.plugin.zsh
+++ /dev/null
@@ -1,22 +0,0 @@
-function _cargo_commands() {
- local ret=1 state
- _arguments ':subcommand:->subcommand' && ret=0
-
- case $state in
- subcommand)
- subcommands=(
- "build:Build the current project"
- "clean:Clean up after a build"
- "help:Help about available commands"
- "new:Create a new project"
- "test:Run the tests"
- "update:Updates list of known packages"
- "run:Builds and runs the currecnt project"
- )
- _describe -t subcommands 'cargo subcommands' subcommands && ret=0
- esac
-
- return ret
-}
-
-compdef _cargo_commands cargo