Skip to content

Commit a7a54b0

Browse files
committed
Add suggestions to mention sourcing env.fish
1 parent 3d6f8ea commit a7a54b0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/cli/self_update.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,12 @@ This would reload your `PATH` environment variable to include
225225
Cargo's bin directory ({cargo_home}/bin).
226226
227227
To configure your current shell, you need to source
228-
the `env` file ({cargo_home}/env).
228+
the corresponding `env` file under {cargo_home}.
229229
230-
This is usually done by running:
231-
source "{cargo_home}/env"
232-
233-
The `source` command above might need to be replaced with `.`
234-
on shells like `ash`, `dash` and `pdksh`.
230+
This is usually done by running one of the following:
231+
source "{cargo_home}/env" # For bash/zsh
232+
. "{cargo_home}/env" # For ash/dash/pdksh (note the leading DOT)
233+
source "{cargo_home}/env.fish" # For fish
235234
"#
236235
};
237236
}
@@ -258,13 +257,12 @@ To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
258257
environment variable. This has not been done automatically.
259258
260259
To configure your current shell, you need to source
261-
the `env` file ({cargo_home}/env).
262-
263-
This is usually done by running:
264-
source "{cargo_home}/env"
260+
the corresponding `env` file under {cargo_home}.
265261
266-
The `source` command above might need to be replaced with `.`
267-
on shells like `ash`, `dash` and `pdksh`.
262+
This is usually done by running one of the following:
263+
source "{cargo_home}/env" # For bash/zsh
264+
. "{cargo_home}/env" # For ash/dash/pdksh (note the leading DOT)
265+
source "{cargo_home}/env.fish" # For fish
268266
"#
269267
};
270268
}

0 commit comments

Comments
 (0)