Added the "visual identifier" concept to the node_version segment.

This commit is contained in:
Dominik Ritter 2015-12-15 01:02:55 +01:00
parent 35b1cb5b8d
commit fd0fcba5e9

View file

@ -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