mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
don't output segment if node_version was not populated
This commit is contained in:
parent
e29b3545bd
commit
2fa7b1d08f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue