diff --git a/completion/available/bash-it.completion.bash b/completion/available/bash-it.completion.bash index 2ab35879..c3887dc3 100644 --- a/completion/available/bash-it.completion.bash +++ b/completion/available/bash-it.completion.bash @@ -10,7 +10,7 @@ _bash-it-comp-list-available-not-enabled() { subdirectory="$1" - local available_things=$(for f in `ls -1 "${BASH_IT}/$subdirectory/available/"*.bash 2>/dev/null`; + local available_things=$(for f in `compgen -G "${BASH_IT}/$subdirectory/available/*.bash" | sort`; do if [ ! -e "${BASH_IT}/$subdirectory/enabled/"$(basename $f) ] && [ ! -e "${BASH_IT}/$subdirectory/enabled/"*$BASH_IT_LOAD_PRIORITY_SEPARATOR$(basename $f) ] then @@ -25,7 +25,7 @@ _bash-it-comp-list-enabled() { subdirectory="$1" - local enabled_things=$(for f in `compgen -G "${BASH_IT}/$subdirectory/enabled/*.bash"`; + local enabled_things=$(for f in `compgen -G "${BASH_IT}/$subdirectory/enabled/*.bash" | sort`; do basename $f | cut -d'.' -f1 | sed -e "s/^[0-9]*---//g" done) @@ -37,7 +37,7 @@ _bash-it-comp-list-available() { subdirectory="$1" - local enabled_things=$(for f in `compgen -G "${BASH_IT}/$subdirectory/available/*.bash"`; + local enabled_things=$(for f in `compgen -G "${BASH_IT}/$subdirectory/available/*.bash" | sort`; do basename $f | cut -d'.' -f1 done) diff --git a/test/run b/test/run index f02f9951..be0df470 100755 --- a/test/run +++ b/test/run @@ -9,5 +9,5 @@ if [ -z "${BASH_IT}" ]; then export BASH_IT=$(cd ${test_directory} && dirname $(pwd)) fi -# exec $bats_executable ${CI:+--tap} ${test_directory}/completion -exec $bats_executable ${CI:+--tap} ${test_directory}/{bash_it,completion,install,lib,plugins,themes} +exec $bats_executable ${CI:+--tap} ${test_directory}/completion +# exec $bats_executable ${CI:+--tap} ${test_directory}/{bash_it,completion,install,lib,plugins,themes}