chore: use _command_exists based on MR feedback

pull/2142/head
Matthew Adams 2022-05-19 07:20:33 -05:00
parent f7d21b5191
commit 06b4b014cf
1 changed files with 1 additions and 1 deletions

View File

@ -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