mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
don't output segment if node_version was not populated
This commit is contained in:
@@ -538,7 +538,7 @@ prompt_nvm() {
|
||||
[[ "$node_version" =~ "$nvm_default" ]] && return
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user