mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
fffb0faeb1
commit
08f7a6a17e
|
@ -29,7 +29,8 @@ Display the currently active node version.
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
- display_mode: `string` - determines when the segment is displayed
|
||||||
- `always`: The segment is always displayed
|
- `always`: The segment is always displayed
|
||||||
- `files`: The segment is only displayed when `*.js`, `*.ts`, or `package.json` files are present (default)
|
- `files`: The segment is only displayed when `*.js`, `*.ts`, `package.json`, `.nvmrc`, `pnpm-workspace.yaml`,
|
||||||
|
`.pnpmfile.cjs`, `.npmrc` or `.vue` files are present (default)
|
||||||
- fetch_package_manager: `boolean` - define if the current project uses Yarn or NPM - defaults to `false`
|
- fetch_package_manager: `boolean` - define if the current project uses Yarn or NPM - defaults to `false`
|
||||||
- yarn_icon: `string` - the icon/text to display when using Yarn - defaults to ` \uF61A`
|
- 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`
|
- npm_icon: `string` - the icon/text to display when using NPM - defaults to ` \uE71E`
|
||||||
|
|
|
@ -30,7 +30,7 @@ func (n *Node) Init(props properties.Properties, env environment.Environment) {
|
||||||
n.language = language{
|
n.language = language{
|
||||||
env: env,
|
env: env,
|
||||||
props: props,
|
props: props,
|
||||||
extensions: []string{"*.js", "*.ts", "package.json", ".nvmrc", "pnpm-workspace.yaml", ".pnpmfile.cjs", ".npmrc"},
|
extensions: []string{"*.js", "*.ts", "package.json", ".nvmrc", "pnpm-workspace.yaml", ".pnpmfile.cjs", ".npmrc", ".vue"},
|
||||||
commands: []*cmd{
|
commands: []*cmd{
|
||||||
{
|
{
|
||||||
executable: "node",
|
executable: "node",
|
||||||
|
|
Loading…
Reference in a new issue