mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Using idiomatic zsh way to check if hg is present
This commit is contained in:
parent
171c19d19e
commit
110f407915
1 changed files with 1 additions and 3 deletions
|
|
@ -128,9 +128,7 @@ prompt_git() {
|
|||
}
|
||||
|
||||
prompt_hg() {
|
||||
if ! type hg &> /dev/null; then
|
||||
return
|
||||
fi
|
||||
(( $+commands[hg] )) || return
|
||||
local rev status
|
||||
if $(hg id >/dev/null 2>&1); then
|
||||
if $(hg prompt >/dev/null 2>&1); then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue