Supporting both old and new link structure for completion
This commit is contained in:
@@ -27,7 +27,7 @@ _bash-it-comp-list-enabled()
|
|||||||
|
|
||||||
local enabled_things=$(for f in `ls -1 $BASH_IT/$subdirectory/enabled/*.bash`;
|
local enabled_things=$(for f in `ls -1 $BASH_IT/$subdirectory/enabled/*.bash`;
|
||||||
do
|
do
|
||||||
basename $f | cut -d'.' -f1
|
basename $f | cut -d'.' -f1 | sed -e "s/^[0-9]*---//g"
|
||||||
done)
|
done)
|
||||||
|
|
||||||
COMPREPLY=( $(compgen -W "all ${enabled_things}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "all ${enabled_things}" -- ${cur}) )
|
||||||
|
|||||||
Reference in New Issue
Block a user