aboutsummaryrefslogtreecommitdiff
path: root/.oh-my-zsh/plugins/compleat/compleat.plugin.zsh
diff options
context:
space:
mode:
authorMarvin Borner2019-03-05 01:09:01 +0100
committerMarvin Borner2019-03-05 01:09:01 +0100
commit55457187d18221e76bd12f0fb2cfab65c49b92fb (patch)
tree8db042d2d80710d54100c2709ad4332153ac848a /.oh-my-zsh/plugins/compleat/compleat.plugin.zsh
Initial commit
Diffstat (limited to '.oh-my-zsh/plugins/compleat/compleat.plugin.zsh')
-rw-r--r--.oh-my-zsh/plugins/compleat/compleat.plugin.zsh20
1 files changed, 20 insertions, 0 deletions
diff --git a/.oh-my-zsh/plugins/compleat/compleat.plugin.zsh b/.oh-my-zsh/plugins/compleat/compleat.plugin.zsh
new file mode 100644
index 0000000..38f1b39
--- /dev/null
+++ b/.oh-my-zsh/plugins/compleat/compleat.plugin.zsh
@@ -0,0 +1,20 @@
+# ------------------------------------------------------------------------------
+# FILE: compleat.plugin.zsh
+# DESCRIPTION: oh-my-zsh plugin file.
+# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
+# VERSION: 1.0.0
+# ------------------------------------------------------------------------------
+
+if (( ${+commands[compleat]} )); then
+ local prefix="${commands[compleat]:h:h}"
+ local setup="${prefix}/share/compleat-1.0/compleat_setup"
+
+ if [[ -f "$setup" ]]; then
+ if ! bashcompinit >/dev/null 2>&1; then
+ autoload -U bashcompinit
+ bashcompinit -i
+ fi
+
+ source "$setup"
+ fi
+fi