Skip to content
Browse files

Added alias to clear .orig files on mercurial plugin

  • Loading branch information...
1 parent 86a889e commit 4054e2812ab1f60ed2d7cf3e6c9c0a3901f8c928 @tinogomes committed Jan 28, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 plugins/mercurial/mercurial.plugin.zsh
View
12 plugins/mercurial/mercurial.plugin.zsh
@@ -1,3 +1,8 @@
+function hg_current_branch() {
+ if [ -d .hg ]; then
+ echo hg:$(hg branch)
+ fi
+}
# Mercurial
alias hgc='hg commit'
@@ -17,8 +22,5 @@ alias hgs='hg status'
# this is the 'git commit --amend' equivalent
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
-function hg_current_branch() {
- if [ -d .hg ]; then
- echo hg:$(hg branch)
- fi
-}
+# Remove all .orig files
+alias hgclear='find . -name "*.orig" -delete'

0 comments on commit 4054e28

Please sign in to comment.
Something went wrong with that request. Please try again.