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

Cargo bin's not added to PATH #535

Closed
gnzlbg opened this issue Jun 16, 2016 · 5 comments
Closed

Cargo bin's not added to PATH #535

gnzlbg opened this issue Jun 16, 2016 · 5 comments

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Jun 16, 2016

I'm using the fish shell under MacOS X Capitan and after using rustup.rs I get the following message:

Rust is installed now. Great!

To get started you need Cargo's bin directory in your PATH environment variable.
Next time you log in this will be done automatically.

The next time I logged in Cargo was not in my PATH. I had to add it manually.

In my .config/config/fish.config file I have a:

set -x PATH ...

line where I had to manually add cargo bin's:

set -x PATH ... .cargo/bin

@brson
Copy link
Contributor

brson commented Jun 23, 2016

Thanks for the report. Yep, rustup doesn't know how to deal with fish shell. This is a duplicate of either #478 or #371.

@alper
Copy link

alper commented Nov 5, 2020

So what's the solution?

@kinnison
Copy link
Contributor

kinnison commented Nov 6, 2020

You can find fish help in #478 I think

@polyglotdev
Copy link

  1. Run the fish_add_path command like 👇🏾
fish_add_path /home/your-username/.cargo/bin/
  1. Restart your shell
  2. Check out more information from fish-shell docs

@polyglotdev
Copy link

I think it is also worth noting that if you are using fish sticking configuration in your .zshrc is only going to complicate things, so my suggestion would be if it needs to be sourced into your env, use the fish commands.

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

5 participants