Made a lot of changes: no more functions directory. All aliases have been moved to the new alias directory. Plugins are now for functions only. Updated the README to reflect the changes and add a contributor's list.

This commit is contained in:
Robert R Evans
2010-10-10 09:24:19 -07:00
parent 4f3462b6d1
commit 2010f011f8
20 changed files with 102 additions and 70 deletions

14
plugins/hg.plugins.bash Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
hg_dirty() {
hg status --no-color 2> /dev/null \
| awk '$1 == "?" { print "?" } $1 != "?" { print "!" }' \
| sort | uniq | head -c1
}
hg_in_repo() {
[[ `hg branch 2> /dev/null` ]] && echo 'on '
}
hg_branch() {
hg branch 2> /dev/null
}