Skip to content

Fish shell error while sourcing ~/.cargo/env #83958

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

Closed
72siddharth opened this issue Apr 7, 2021 · 2 comments
Closed

Fish shell error while sourcing ~/.cargo/env #83958

72siddharth opened this issue Apr 7, 2021 · 2 comments

Comments

@72siddharth
Copy link

I recently switched to Arch and decided to download Rust. Rustup and Cargo commands seem to work fine, but everytime I start Fish this message pops up:

case ":${PATH}:" in
^
from sourcing file ~/.cargo/env
	called on line 8 of file ~/.profile
from sourcing file ~/.profile
	called on line 14 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
	called during startup
source: Error while reading file “/home/sid/.cargo/env”

Fish Version --> 3.2.1
Rustup Version --> 1.23.1
I'm kind of a newbie to Linux so I would be grateful for any help.

@jonas-schievink
Copy link
Contributor

That's a bash script, you cannot use it with fish

@Stef16Robbe
Copy link

For anyone coming from Google, this worked perfectly for me:

rust-lang/rustup#478 (comment)

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

No branches or pull requests

3 participants