mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
Added the "visual identifier" concept to the node_version segment.
This commit is contained in:
@@ -481,7 +481,7 @@ prompt_node_version() {
|
||||
local node_version=$(node -v 2>/dev/null)
|
||||
[[ -z "${node_version}" ]] && return
|
||||
|
||||
"$1_prompt_segment" "$0" "green" "white" "${node_version:1} $(print_icon 'NODE_ICON')"
|
||||
"$1_prompt_segment" "$0" "green" "white" "${node_version:1}" 'NODE_ICON'
|
||||
}
|
||||
|
||||
# print a little OS icon
|
||||
|
||||
Reference in New Issue
Block a user