Changed meta info resolution to look for data based on the type, e.g. about-plugin, about-alias, about-completion.
parent
1f558e2550
commit
f71be20247
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue