Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
6dd286bb
Commit
6dd286bb
authored
Mar 11, 2013
by
Vladimir Zakharov
Browse files
Mercurial: add aliases for 'incoming' and 'outgoing' commands
parent
0ab0e67e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/mercurial/mercurial.plugin.zsh
View file @
6dd286bb
...
@@ -7,7 +7,9 @@ alias hgco='hg checkout'
...
@@ -7,7 +7,9 @@ alias hgco='hg checkout'
alias
hgd
=
'hg diff'
alias
hgd
=
'hg diff'
alias
hged
=
'hg diffmerge'
alias
hged
=
'hg diffmerge'
# pull and update
# pull and update
alias
hgi
=
'hg incoming'
alias
hgl
=
'hg pull -u'
alias
hgl
=
'hg pull -u'
alias
hgo
=
'hg outgoing'
alias
hgp
=
'hg push'
alias
hgp
=
'hg push'
alias
hgs
=
'hg status'
alias
hgs
=
'hg status'
# this is the 'git commit --amend' equivalent
# this is the 'git commit --amend' equivalent
...
@@ -17,4 +19,4 @@ function hg_current_branch() {
...
@@ -17,4 +19,4 @@ function hg_current_branch() {
if
[
-d
.hg
]
;
then
if
[
-d
.hg
]
;
then
echo
hg:
$(
hg branch
)
echo
hg:
$(
hg branch
)
fi
fi
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment