diff options
| author | Tristan Carel <tcarel@exalead.com> | 2011-10-10 14:58:28 +0200 | 
|---|---|---|
| committer | Tristan Carel <tcarel@exalead.com> | 2011-10-10 14:58:28 +0200 | 
| commit | db90589c8a02e98e657af17bb0b460b752d9ed61 (patch) | |
| tree | d1354a9338bf9921ad0f66d2f5394272e1cfec77 /plugins/compleat | |
| parent | 7066bf7c6b522af9147ebf03c00361c4c6490d42 (diff) | |
| parent | 57f04b921ea1c12a0a283331778848cd4011bf21 (diff) | |
| download | zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.gz zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.bz2 zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.zip  | |
Merge remote-tracking branch 'upstream/master' into emacs
Conflicts:
	plugins/emacs/emacs.plugin.zsh
	plugins/emacs/emacsclient.sh
Diffstat (limited to 'plugins/compleat')
| -rw-r--r-- | plugins/compleat/compleat.plugin.zsh | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/compleat/compleat.plugin.zsh b/plugins/compleat/compleat.plugin.zsh new file mode 100644 index 000000000..38f1b396a --- /dev/null +++ b/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  | 
