Skip to content

Add NVM prompt#207

Merged
bobthecow merged 3 commits intooh-my-fish:masterfrom
alessandro-fazzi:prompt_nvm
Jul 1, 2019
Merged

Add NVM prompt#207
bobthecow merged 3 commits intooh-my-fish:masterfrom
alessandro-fazzi:prompt_nvm

Conversation

@alessandro-fazzi
Copy link
Copy Markdown
Contributor

@alessandro-fazzi alessandro-fazzi commented Jun 26, 2019

As it says. Should fix #97

Sincerly I'm not 100% sure about colors I've used for all the themes: I chose the green and applied it down to all the supported color schemes.

Since this is a PR on a project I do not maintain, I decided to have this prompt disabled by default.

If NVM version is deactivated (nvm deactivate) the nvm prompt won't show. I'm open to other/smarter methods to understand if we're not on an nvm's node version.

Documentation should be ok also.

Note: this is a specific PR done for NVM, hence it's not meant to supersede the (stalled?) #128

@alessandro-fazzi
Copy link
Copy Markdown
Contributor Author

Sry for the push-force, but I've rebased after a fixup in order to retain clean history: I left a debug echo in the code. My bad.

@alessandro-fazzi
Copy link
Copy Markdown
Contributor Author

I've opted to not show the prompt also if system version is used

Copy link
Copy Markdown
Member

@bobthecow bobthecow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

That's the approach I usually take to colors :)

Comment thread functions/__bobthefish_glyphs.fish Outdated
@bobthecow bobthecow merged commit 1abb331 into oh-my-fish:master Jul 1, 2019
@bobthecow
Copy link
Copy Markdown
Member

Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add NVM support

2 participants