mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
22 lines
504 B
Bash
22 lines
504 B
Bash
function hg_current_branch() {
|
|
if [ -d .hg ]; then
|
|
echo hg:$(hg branch)
|
|
fi
|
|
}
|
|
|
|
# Mercurial
|
|
alias hgc='hg commit'
|
|
alias hgb='hg branch'
|
|
alias hgba='hg branches'
|
|
alias hgco='hg checkout'
|
|
alias hgd='hg diff'
|
|
alias hged='hg diffmerge'
|
|
# pull and update
|
|
alias hgl='hg pull -u'
|
|
alias hgp='hg push'
|
|
alias hgs='hg status'
|
|
# this is the 'git commit --amend' equivalent
|
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
|
|
|
# Remove all .orig files
|
|
alias hgclear='find . -name "*.orig" -delete'
|