Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] install.sh: support ~/.zprofile #2892

Merged
merged 1 commit into from
Oct 8, 2022
Merged

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.

None yet

3 participants