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
a7e30b26
Commit
a7e30b26
authored
Jul 22, 2016
by
Anton
Committed by
Marc Cornellà
Jul 22, 2016
Browse files
Fix hg call when missing on archlinux with command-not-found (#5218)
parent
cc8285b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/agnoster.zsh-theme
View file @
a7e30b26
...
@@ -128,6 +128,7 @@ prompt_git() {
...
@@ -128,6 +128,7 @@ prompt_git() {
}
}
prompt_hg
()
{
prompt_hg
()
{
((
$+
commands[hg]
))
||
return
local
rev status
local
rev status
if
$(
hg
id
>
/dev/null 2>&1
)
;
then
if
$(
hg
id
>
/dev/null 2>&1
)
;
then
if
$(
hg prompt
>
/dev/null 2>&1
)
;
then
if
$(
hg prompt
>
/dev/null 2>&1
)
;
then
...
...
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