Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

[Enhancement] adds ...PROJECT_ONLY option to node_version.p9k#1219

Open
ChrisBaker97 wants to merge 2 commits intoPowerlevel9k:nextfrom
ChrisBaker97:next-node_status_project_only_version
Open

[Enhancement] adds ...PROJECT_ONLY option to node_version.p9k#1219
ChrisBaker97 wants to merge 2 commits intoPowerlevel9k:nextfrom
ChrisBaker97:next-node_status_project_only_version

Conversation

@ChrisBaker97
Copy link
Contributor

This is a port of @weilbith's #760, updated for the v0.7.0+ branch, with docs and tests added. It works identically to his description in the previous PR, and is described in README.md.

tl;dr: A new environment variable P9K_NODE_VERSION_PROJECT_ONLY defaults to false. When set to true, it will mute the node_version segment unless a package.json file is located in a search of the current directory or one of its ancestors, prior to reaching /.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant