mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Using type for checking if hg present instead of which
This commit is contained in:
parent
ca8080a5d6
commit
aa00bce564
1 changed files with 2 additions and 3 deletions
|
|
@ -127,9 +127,8 @@ prompt_git() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_hg() {
|
prompt_hg()
|
||||||
which hg > /dev/null 2>&1
|
if ! type hg &> /dev/null ; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local rev status
|
local rev status
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue