2012-02-01 05:37:51 +01:00
|
|
|
#
|
|
|
|
# Loads Compleat completions.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
2011-05-06 00:41:05 +02:00
|
|
|
|
|
|
|
if (( ${+commands[compleat]} )); then
|
2011-07-18 02:28:50 +02:00
|
|
|
compleat_setup="${commands[compleat]:h:h}/share/compleat-1.0/compleat_setup"
|
2011-05-06 00:41:05 +02:00
|
|
|
|
2011-07-18 02:28:50 +02:00
|
|
|
if [[ -f "$compleat_setup" ]]; then
|
2011-07-28 22:41:39 +02:00
|
|
|
if autoloadable bashcompinit; then
|
2011-07-18 02:28:50 +02:00
|
|
|
autoload -Uz bashcompinit && bashcompinit
|
2011-05-06 00:41:05 +02:00
|
|
|
fi
|
|
|
|
|
2011-07-18 02:28:50 +02:00
|
|
|
source "$compleat_setup"
|
|
|
|
unset compleat_setup
|
2011-05-06 00:41:05 +02:00
|
|
|
fi
|
|
|
|
fi
|
2011-07-18 02:28:50 +02:00
|
|
|
|