Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added alias to clear .orig files on mercurial plugin

  • Loading branch information...
commit 0525bd64d1bd1725ddf2a279d56712b75593178a 1 parent 0ab0e67
Celestino Gomes authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 plugins/mercurial/mercurial.plugin.zsh
12 plugins/mercurial/mercurial.plugin.zsh
View
@@ -1,3 +1,8 @@
+function hg_current_branch() {
+ if [ -d .hg ]; then
+ echo hg:$(hg branch)
+ fi
+}
# Mercurial
alias hgc='hg commit'
@@ -13,8 +18,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'
Please sign in to comment.
Something went wrong with that request. Please try again.