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

Refine suggestions of sourcing $HOME/.cargo/env #3445

Merged
merged 1 commit into from
Aug 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,14 @@ To get started you may need to restart your current shell.
This would reload your `PATH` environment variable to include
Cargo's bin directory ({cargo_home}/bin).

To configure your current shell, run:
To configure your current shell, you need to source
the `env` file ({cargo_home}/env).

This is usually done by running:
source "{cargo_home}/env"

The `source` command above might need to be replaced with `.`
on shells like `ash`, `dash` and `pdksh`.
"#
};
}
Expand All @@ -251,8 +257,14 @@ macro_rules! post_install_msg_unix_no_modify_path {
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
environment variable. This has not been done automatically.

To configure your current shell, run:
To configure your current shell, you need to source
the `env` file ({cargo_home}/env).

This is usually done by running:
source "{cargo_home}/env"

The `source` command above might need to be replaced with `.`
on shells like `ash`, `dash` and `pdksh`.
"#
};
}
Expand Down