|
|
@ -395,11 +395,10 @@ prompt_load() {
|
|
|
|
|
|
|
|
|
|
|
|
# Node version
|
|
|
|
# Node version
|
|
|
|
prompt_node_version() {
|
|
|
|
prompt_node_version() {
|
|
|
|
local nvm_prompt
|
|
|
|
local node_version=$(node -v 2>/dev/null)
|
|
|
|
nvm_prompt=$(node -v 2>/dev/null)
|
|
|
|
[[ -z "${node_version}" ]] && return
|
|
|
|
[[ -z "${nvm_prompt}" ]] && return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"$1_prompt_segment" "$0" "green" "white" "${nvm_prompt:1} $(print_icon 'NODE_ICON')"
|
|
|
|
"$1_prompt_segment" "$0" "green" "white" "${node_version:1} $(print_icon 'NODE_ICON')"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# print a little OS icon
|
|
|
|
# print a little OS icon
|
|
|
|