mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
c4db62c644
closes #874
1.6 KiB
1.6 KiB
id | title | sidebar_label |
---|---|---|
node | Node | Node |
What
Display the currently active node version.
Sample Configuration
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
}
Properties
- home_enabled:
boolean
- display the segment in the HOME folder or not - defaults tofalse
- 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 - display_package_manager:
boolean
- show whether the current project uses Yarn or NPM - defaults tofalse
- yarn_icon:
string
- the icon/text to display when using Yarn - defaults to\uF61A
- npm_icon:
string
- the icon/text to display when using NPM - defaults to\uE71E