cd9c47430349826d4461d7c9e73f6c58e567f01b
- Author
- Stephen Zhuang <stephen.zhuang@gmail.com>
- Committer
- Stephen Zhuang <stephen.zhuang@gmail.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/fabric/_fab b/plugins/fabric/_fab
2new file mode 100644
3index 0000000000000000000000000000000000000000..9628e122474052baec84ebae2bc91d11387e3f10
4--- /dev/null
5+++ b/plugins/fabric/_fab
6@@ -0,0 +1,60 @@
7+#compdef fab
8+#autoload
9+
10+local curcontext=$curcontext state line
11+declare -A opt_args
12+
13+declare target_list
14+target_list=(`fab --shortlist 2>/dev/null`)
15+
16+_targets() {
17+ _describe -t commands "fabric targets" target_list
18+}
19+
20+output_levels=(
21+ 'status: Status messages, i.e. noting when Fabric is done running, if the user used a keyboard interrupt, or when servers are disconnected from. These messages are almost always relevant and rarely verbose.'
22diff --git a/plugins/fabric/fabric.plugin.zsh b/plugins/fabric/fabric.plugin.zsh
23index d44e2d916c258710860fe309cf208aafa2a49d42..aca41132905175fee832535a53127f32646d238b 100644
24--- a/plugins/fabric/fabric.plugin.zsh
25+++ b/plugins/fabric/fabric.plugin.zsh
26@@ -1,8 +1 @@
27-#compdef fab
28-
29-_fab_list() {
30- reply=(`fab --shortlist`)
31-}
32-compctl -K _fab_list fab
33-
34-# DECLARION: This plugin was created by kennethreitz. What I did is just making a portal from https://github.com/kennethreitz-archive/fabric-zsh-completion.
35+# DECLARION: This plugin was created by vhbit. What I did is just making a portal from https://github.com/vhbit/fabric-zsh-autocomplete.