standardize plugins, update metadata

add about-plugin metadata
chmod -x plugins
cleanup filenames to standardize on x.plugin.bash format
only plugin files intended to be executable from the command line should
contain a shebang line, and should be a+x.
This commit is contained in:
Erich Smith
2012-05-11 23:27:03 -04:00
parent 254d4459e2
commit 55e77deac1
27 changed files with 214 additions and 53 deletions

View File

@@ -0,0 +1,25 @@
cite about-plugin
about-plugin hg helper functions
hg_dirty() {
about displays dirty status of hg repository
group hg
hg status --no-color 2> /dev/null \
| awk '$1 == "?" { print "?" } $1 != "?" { print "!" }' \
| sort | uniq | head -c1
}
hg_in_repo() {
about 'determine if pwd is an hg repo'
group hg
[[ `hg branch 2> /dev/null` ]] && echo 'on '
}
hg_branch() {
about display current hg branch
group hg
hg branch 2> /dev/null
}