2011-05-05 22:41:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# 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}"
|
2024-03-26 08:55:16 +00:00
|
|
|
local setup="${prefix}/share/compleat-1.0/compleat_setup"
|
2011-05-05 22:41:05 +00:00
|
|
|
|
|
|
|
if [[ -f "$setup" ]]; then
|
2020-10-05 15:20:02 +00:00
|
|
|
if ! bashcompinit >/dev/null 2>&1; then
|
|
|
|
autoload -U bashcompinit
|
|
|
|
bashcompinit -i
|
|
|
|
fi
|
|
|
|
|
2024-03-26 08:55:16 +00:00
|
|
|
source "$setup"
|
2011-05-05 22:41:05 +00:00
|
|
|
fi
|
|
|
|
fi
|