Skip to content

Commit 32cd430

Browse files
authored
Merge pull request #2684 from Gurkenglas/patch-1
Clarify shell restarting message
2 parents cc20b7e + 4a93126 commit 32cd430

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/src/faq.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ closing your editor) and try again.
3939

4040
### rustup exited successfully but I can't run `rustc --version`
4141

42-
To get started you need Cargo's bin directory (`$CARGO_HOME/bin`) in your
43-
`PATH` environment variable. This should be done by rustup. Next time you log
44-
in this should have been done automatically.
42+
Restart your shell. This will reload your `PATH` environment
43+
variable to include Cargo's bin directory (`$CARGO_HOME/bin`).

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 restart your current shell.
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)