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:
14
plugins/hg.plugins.bash
Normal file
14
plugins/hg.plugins.bash
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user