From 2e0ceba7764c27dffd13319d5ebc77ba24c5bfa7 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Wed, 10 May 2017 11:12:07 +0200 Subject: [PATCH] Supporting both old and new link structure for completion --- completion/available/bash-it.completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/available/bash-it.completion.bash b/completion/available/bash-it.completion.bash index edcad0ea..3e19a4c1 100644 --- a/completion/available/bash-it.completion.bash +++ b/completion/available/bash-it.completion.bash @@ -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}) )