mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Refactory of #hg_current_branch in mercurial plugin
This commit is contained in:
parent
7163095193
commit
5ec68ff511
1 changed files with 2 additions and 3 deletions
|
|
@ -14,9 +14,8 @@ alias hgs='hg status'
|
|||
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
||||
|
||||
function hg_current_branch() {
|
||||
if [ -d .hg ]; then
|
||||
echo $(hg branch)
|
||||
fi
|
||||
local ref=$(hg branch 2>/dev/null) || return
|
||||
echo $ref
|
||||
}
|
||||
|
||||
function parse_hg_dirty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue