Skip to content

[readme] use tilde instead of hardcoded home directory "/home/user"#3799

Open
pzhlkj6612 wants to merge 2 commits intonvm-sh:masterfrom
pzhlkj6612:docs/readme-user-home
Open

[readme] use tilde instead of hardcoded home directory "/home/user"#3799
pzhlkj6612 wants to merge 2 commits intonvm-sh:masterfrom
pzhlkj6612:docs/readme-user-home

Conversation

@pzhlkj6612
Copy link

Hello!

A simple copy-paste produced some errors, and the hardcoded path was the cause. Just let README use $HOME when possible.

For now, only "test/fast/Unit tests/nvm_change_path" uses "/home/user".
README.md Outdated

# Create a script file sourced by both interactive and non-interactive bash shells
ENV BASH_ENV /home/user/.bash_env
ENV BASH_ENV $HOME/.bash_env
Copy link
Member

Choose a reason for hiding this comment

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

any reason not to use ~?

Copy link
Author

Choose a reason for hiding this comment

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

Hi!

any reason not to use ~?

My bad, it should be the same as the code lines below. Fixed in 1942ce2.

@pzhlkj6612 pzhlkj6612 changed the title [readme] use "$HOME" instead of hardcoded "/home/user" [readme] use tilde instead of hardcoded home directory "/home/user" Mar 5, 2026
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.

2 participants