diff --git a/lib/helpers.bash b/lib/helpers.bash index fd0fdd1f..0184455e 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -216,7 +216,7 @@ _bash-it-describe () else enabled=' ' fi - printf "%-20s%-10s%s\n" "$(basename $f | cut -d'.' -f1)" " [$enabled]" "$(cat $f | metafor about-$file_type)" + printf "%-20s%-10s%s\n" "$(basename $f | sed -e 's/\(.*\)\..*\.bash/\1/g')" " [$enabled]" "$(cat $f | metafor about-$file_type)" done printf '\n%s\n' "to enable $preposition $file_type, do:" printf '%s\n' "$ bash-it enable $file_type <$file_type name> [$file_type name]... -or- $ bash-it enable $file_type all" diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index b41ef636..00b13b3a 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -233,3 +233,8 @@ function local_setup { _bash-it-plugins | grep "nvm" | grep "\[x\]" } + +@test "bash-it: describe the todo.txt-cli aliases without enabling them" { + run _bash-it-aliases + assert_line "todo.txt-cli [ ] todo.txt-cli abbreviations" +}