Changed meta info resolution to look for data based on the type, e.g. about-plugin, about-alias, about-completion.

pull/139/head
Nils Winkler 2012-05-21 15:52:03 +02:00
parent 1f558e2550
commit f71be20247
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cite about-plugin cite about-alias
about-plugin 'general aliases' about-alias 'general aliases'
# List directory contents # List directory contents
alias sl=ls alias sl=ls

View File

@ -73,7 +73,7 @@ _bash-it-describe ()
else else
enabled=' ' enabled=' '
fi fi
printf "%-20s%-10s%s\n" "$(basename $f | cut -d'.' -f1)" " [$enabled]" "$(cat $f | metafor about-plugin)" printf "%-20s%-10s%s\n" "$(basename $f | cut -d'.' -f1)" " [$enabled]" "$(cat $f | metafor about-$command_suffix)"
done done
printf '\n%s\n' "to enable $preposition $command_suffix, do:" printf '\n%s\n' "to enable $preposition $command_suffix, do:"
printf '%s\n' "$ enable-$command_suffix <$command_suffix name> -or- $ enable-$command_suffix all" printf '%s\n' "$ enable-$command_suffix <$command_suffix name> -or- $ enable-$command_suffix all"