Move auto-complete code over to available -> enabled style

This continues the move toward the ability to turn things off with
everything turned on by default.
pull/63/head
Travis Swicegood 2011-06-21 09:20:40 -05:00
parent 972d58f9c5
commit e115b4c5af
7 changed files with 7 additions and 1 deletions

View File

@ -17,8 +17,14 @@ do
source $config_file
done
# TODO: reduce the repetition here by combining these three into a loop
# Tab Completion
COMPLETION="${BASH}/completion/*.bash"
if [ ! -d "${BASH}/completion/enabled" ]
then
mkdir "${BASH}/completion/enabled"
ln -s ${BASH}/completion/available/* "${BASH}/completion/enabled"
fi
COMPLETION="${BASH}/completion/enabled/*.bash"
for config_file in $COMPLETION
do
source $config_file