1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Renamed variable.

This commit is contained in:
Dominik Ritter 2015-11-22 00:08:43 +01:00
parent 49a3a3e750
commit 4b636d226e

View file

@ -395,11 +395,10 @@ prompt_load() {
# Node version
prompt_node_version() {
local nvm_prompt
nvm_prompt=$(node -v 2>/dev/null)
[[ -z "${nvm_prompt}" ]] && return
local node_version=$(node -v 2>/dev/null)
[[ -z "${node_version}" ]] && 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