Skip to content

Conversation

@maxmaxme
Copy link
Contributor

@maxmaxme maxmaxme commented Sep 21, 2022

Hi there.

I tried to install nvm on my new Macbook air m2 and failed due to the "Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile." error

I checked my home directory and there was only a ~/.zprofile file

This PR adds support for ~/.zprofile

Screenshot 2022-09-21 at 22 43 42

@maxmaxme maxmaxme marked this pull request as ready for review September 21, 2022 20:58
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Seems great, thanks!

@ljharb ljharb added shell: zsh installing nvm: profile detection Issues with nvm's own install script, related to figuring out the right profile file. labels Sep 21, 2022
@ljharb
Copy link
Member

ljharb commented Sep 21, 2022

Note that this PR will have to wait until tests are passing on master, but please leave this open and I'll merge and release it once that's fixed.

@ljharb ljharb changed the title Added support ~/.zprofile [Fix] install.sh: support ~/.zprofile Oct 8, 2022
@ljharb
Copy link
Member

ljharb commented Oct 8, 2022

@maxmaxme looks like there's a real test failure; could you take a look?

@ljharb ljharb marked this pull request as draft October 8, 2022 16:22
@ljharb ljharb marked this pull request as ready for review October 8, 2022 17:34
@ljharb ljharb merged commit 7c929f8 into nvm-sh:master Oct 8, 2022
Copy link

@Mikeyhans Mikeyhans left a comment

Choose a reason for hiding this comment

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

Great 👍

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

Labels

installing nvm: profile detection Issues with nvm's own install script, related to figuring out the right profile file. shell: zsh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants