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