chore: use _command_exists based on MR feedback
parent
f7d21b5191
commit
06b4b014cf
|
|
@ -404,7 +404,7 @@ function nvm_version_prompt() {
|
|||
|
||||
function node_native_version_prompt() {
|
||||
local node
|
||||
if which -s node; then
|
||||
if _command_exists node; then
|
||||
node=$(node --version 2> /dev/null)
|
||||
echo -ne "${NODE_THEME_PROMPT_PREFIX-}${node}${NODE_THEME_PROMPT_SUFFIX-}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue