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

Proposal: rustup env <shell> to source the env.* file automatically for a certain shell #4128

Open
rami3l opened this issue Dec 24, 2024 · 0 comments
Milestone

Comments

@rami3l
Copy link
Member

rami3l commented Dec 24, 2024

Problem you are trying to solve

... say, I suddenly decided to start using nu but that happens after my last rustup self update. In this case I'll definitely end up without any env.nu and have to manually populate that file from the repo (we shouldn't assume that I can find that file that easily in the first place):

if ("{cargo_bin}" not-in ($env.Path | split row (char esep))) {
$env.Path = ($env.Path | prepend "{cargo_bin}")
}

#3639 (comment)

Solution you'd like

... if the user wants to add another shell to the mix, manually sourcing the corresponding env.* file will do, and it's usually just a single line in their *shrc file.
OTOH, if they want to source the env.* file automatically, rustup env <shell> would be perfect in terms of adding these sourcing scripts on demand.
#3639 (comment)

Notes

No response

@rami3l rami3l added this to the 1.29.0 milestone Dec 24, 2024
@rami3l rami3l changed the title Proposal: rustup env <shell> Proposal: rustup env <shell> to source the env.* file automatically for a certain shell Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant