4a497b021c886fece4b8dd162a730bf8b4e5343a

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #324 from sorin-ionescu/plugin-compleat

Compleat - Completion for Human Beings Plugin

Diff

 1diff --git a/plugins/compleat/compleat.plugin.zsh b/plugins/compleat/compleat.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..8d16a5687eff49f83cc64d695f9c70a1cff125b5
 4--- /dev/null
 5+++ b/plugins/compleat/compleat.plugin.zsh
 6@@ -0,0 +1,22 @@
 7+# ------------------------------------------------------------------------------
 8+#          FILE:  compleat.plugin.zsh
 9+#   DESCRIPTION:  oh-my-zsh plugin file.
10+#        AUTHOR:  Sorin Ionescu (sorin.ionescu@gmail.com)
11+#       VERSION:  1.0.0
12+# ------------------------------------------------------------------------------
13+
14+
15+if (( ${+commands[compleat]} )); then
16+  local prefix="${commands[compleat]:h:h}"
17+  local setup="${prefix}/share/compleat-1.0/compleat_setup" 
18+
19+  if [[ -f "$setup" ]]; then
20+    if ! bashcompinit >/dev/null 2>&1; then
21+      autoload -U bashcompinit
22+      bashcompinit -i
23+    fi
24+
25+    source "$setup" 
26+  fi
27+fi
28+