Add PATH in post-install message when not modifying PATH
@@ -136,7 +136,7 @@ macro_rules! post_install_msg_unix_no_modify_path {
() => {
r"# Rust is installed now. Great!
-To get started you need Cargo's bin directory in your `PATH`
+To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
environment variable.
To configure your current shell run `source {cargo_home}/env`
@@ -148,7 +148,7 @@ macro_rules! post_install_msg_win_no_modify_path {
() => {
r"# Rust is installed now. Great!
-To get started you need Cargo's bin directory in your `PATH`
+To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
environment variable. This has not been done automatically.
"
};
@@ -302,7 +302,9 @@ pub fn install(no_prompt: bool, verbose: bool,
format!(post_install_msg_unix_no_modify_path!(),
cargo_home = cargo_home)
} else {
- format!(post_install_msg_win_no_modify_path!())
+ let cargo_home = try!(utils::cargo_home());
+ format!(post_install_msg_win_no_modify_path!(),
+ cargo_home = cargo_home.display())
}
};
term2::stdout().md(msg);
