Supporting both old and new link structure for completion

This commit is contained in:
Nils Winkler
2017-05-10 11:12:07 +02:00
parent 4e16dfde56
commit 2e0ceba776

View File

@@ -27,7 +27,7 @@ _bash-it-comp-list-enabled()
local enabled_things=$(for f in `ls -1 $BASH_IT/$subdirectory/enabled/*.bash`;
do
basename $f | cut -d'.' -f1
basename $f | cut -d'.' -f1 | sed -e "s/^[0-9]*---//g"
done)
COMPREPLY=( $(compgen -W "all ${enabled_things}" -- ${cur}) )