compleat.plugin.zsh 632 B

12345678910111213141516171819202122
  1. # ------------------------------------------------------------------------------
  2. # FILE: compleat.plugin.zsh
  3. # DESCRIPTION: oh-my-zsh plugin file.
  4. # AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
  5. # VERSION: 1.0.0
  6. # ------------------------------------------------------------------------------
  7. if (( ${+commands[compleat]} )); then
  8. local prefix="${commands[compleat]:h:h}"
  9. local setup="${prefix}/share/compleat-1.0/compleat_setup"
  10. if [[ -f "$setup" ]]; then
  11. if ! bashcompinit >/dev/null 2>&1; then
  12. autoload -U bashcompinit
  13. bashcompinit -i
  14. fi
  15. source "$setup"
  16. fi
  17. fi