Skip to content

Commit e682122

Browse files
committed
Refine suggestions of sourcing $HOME/.cargo/env
1 parent bcbdca6 commit e682122

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/cli/self_update.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,14 @@ To get started you may need to restart your current shell.
224224
This would reload your `PATH` environment variable to include
225225
Cargo's bin directory ({cargo_home}/bin).
226226
227-
To configure your current shell, run:
227+
To configure your current shell, you need to source
228+
the `env` file ({cargo_home}/env).
229+
230+
This is usually done by running:
228231
source "{cargo_home}/env"
232+
233+
The `source` command above might need to be replaced with `.`
234+
on shells like `ash`, `dash`, or `pdksh`.
229235
"#
230236
};
231237
}
@@ -251,8 +257,14 @@ macro_rules! post_install_msg_unix_no_modify_path {
251257
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
252258
environment variable. This has not been done automatically.
253259
254-
To configure your current shell, run:
260+
To configure your current shell, you need to source
261+
the `env` file ({cargo_home}/env).
262+
263+
This is usually done by running:
255264
source "{cargo_home}/env"
265+
266+
The `source` command above might need to be replaced with `.`
267+
on shells like `ash`, `dash`, or `pdksh`.
256268
"#
257269
};
258270
}

0 commit comments

Comments
 (0)