don't output segment if node_version was not populated

pull/22/head
Robert Jorgenson 9 years ago
parent e29b3545bd
commit 2fa7b1d08f

@ -538,7 +538,7 @@ prompt_nvm() {
[[ "$node_version" =~ "$nvm_default" ]] && return [[ "$node_version" =~ "$nvm_default" ]] && return
fi fi
$1_prompt_segment "$0" "$2" "green" "011" "${node_version:1}" 'NODE_ICON' [[ -n "${node_version}" ]] && $1_prompt_segment "$0" "$2" "green" "011" "${node_version:1}" 'NODE_ICON'
} }
# print a little OS icon # print a little OS icon

Loading…
Cancel
Save