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
|
||||
}
|
||||
|
||||
prompt_hg() {
|
||||
which hg > /dev/null 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
prompt_hg()
|
||||
if ! type hg &> /dev/null ; then
|
||||
return
|
||||
fi
|
||||
local rev status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue