mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Added alias to clear .orig files on mercurial plugin
This commit is contained in:
parent
0ab0e67ecf
commit
0525bd64d1
1 changed files with 7 additions and 5 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
function hg_current_branch() {
|
||||||
|
if [ -d .hg ]; then
|
||||||
|
echo hg:$(hg branch)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Mercurial
|
# Mercurial
|
||||||
alias hgc='hg commit'
|
alias hgc='hg commit'
|
||||||
|
|
@ -13,8 +18,5 @@ alias hgs='hg status'
|
||||||
# this is the 'git commit --amend' equivalent
|
# this is the 'git commit --amend' equivalent
|
||||||
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
||||||
|
|
||||||
function hg_current_branch() {
|
# Remove all .orig files
|
||||||
if [ -d .hg ]; then
|
alias hgclear='find . -name "*.orig" -delete'
|
||||||
echo hg:$(hg branch)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue