Skip to content

Commit b95340e

Browse files
authored
Clarify post_install_msgs advice
Someone who supplies a `no_modify_path` option requires less clarification.
1 parent cc20b7e commit b95340e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/cli/self_update.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ macro_rules! post_install_msg_unix {
162162
() => {
163163
r"# Rust is installed now. Great!
164164
165-
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
166-
environment variable. Next time you log in this will be done
167-
automatically.
165+
To get started you may need to log out and back in.
166+
This would reload your `PATH` environment variable to include
167+
Cargo's bin directory ({cargo_home}/bin).
168168
169169
To configure your current shell, run:
170170
source {cargo_home}/env
@@ -177,9 +177,10 @@ macro_rules! post_install_msg_win {
177177
() => {
178178
r"# Rust is installed now. Great!
179179
180-
To get started you need Cargo's bin directory ({cargo_home}\\bin) in
181-
your `PATH` environment variable. Future applications will automatically
182-
have the correct environment, but you may need to restart your current shell.
180+
181+
To get started you may need to restart your current shell.
182+
This would reload its `PATH` environment variable to include
183+
Cargo's bin directory ({cargo_home}\\bin).
183184
"
184185
};
185186
}
@@ -190,7 +191,7 @@ macro_rules! post_install_msg_unix_no_modify_path {
190191
r"# Rust is installed now. Great!
191192
192193
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
193-
environment variable.
194+
environment variable. This has not been done automatically.
194195
195196
To configure your current shell, run:
196197
source {cargo_home}/env

0 commit comments

Comments
 (0)