Skip to content

node/nvm version behavior (only show when a package.json file is present and use the nvm version) #373

@leeallen337

Description

@leeallen337

I'm unsure if this is possible since there are multiple node settings. I've attached a gif.

Kapture 2019-12-11 at 21 35 31

In that node-starter directory there is a package.json file and it doesn't show the node version initially which I would expect since in the config this setting is set:

typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true

However, only after I use nvm use (since there is an .nvmrc) does it show the node version, and when I do an nvm use defaultit goes back to not showing it again. Also if I do annvm useand then navigate out of that directory to a directory that doesn't have apackage.json` file it still shows the node version.

What behavior I would like to happen:

It always, but only, shows the node version when the directory has a package.json file. If the directory does not have a package.json file then don't show any node information.

Thanks for this awesome theme!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions