【问题标题】:Cargo bin's not added to path ( fish shell )Cargo bin\'s not added to path ( fish shell )
【发布时间】:2022-12-26 16:31:29
【问题描述】:

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/fish/fish.config file I have a:

set -x PATH ...

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

set -x PATH ... .cargo/bin

【问题讨论】:

    标签: rust terminal rust-cargo fish


    【解决方案1】:
    1. run the fish_add_path command

      fish_add_path /home/your-username/.cargo/bin/

      my path: fish_add_path /Users/aharo/.cargo/bin/
      
      1. restart terminal/shell
      2. Run rustc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-26
      • 2017-01-29
      • 1970-01-01
      • 2022-06-30
      • 2020-07-02
      • 2022-12-20
      • 2021-03-08
      • 2022-07-07
      相关资源
      最近更新 更多