Fix some issues that showed the todo.txt-cli aliases in the wrong way

pull/974/head
Nils Winkler 2017-06-06 18:27:03 +02:00
parent 94e68b96b5
commit 2581abdf54
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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"
}