Node
#
WhatDisplay the currently active node version.
#
Sample Configuration#
Properties- display_version:
boolean
- display the node version - defaults totrue
- display_error:
boolean
- show the error context when failing to retrieve the version information - defaults totrue
- missing_command_text:
string
- text to display when the command is missing - defaults to empty - display_mode:
string
- determines when the segment is displayedalways
: The segment is always displayedfiles
: The segment is only displayed when*.js
,*.ts
, orpackage.json
files are present (default)
- enable_version_mismatch:
boolean
- color the segment when the version in.nvmrc
doesn't match the returned node version - color_background:
boolean
- color the background or foreground forversion_mismatch_color
- defaults tofalse
- version_mismatch_color:
string
[color][colors] - the color to use forenable_version_mismatch
- defaults to segment's background or foreground color