fix(init): Use stderr for init error message (#3131)
* Use stderr for init error message * Add a dummy commit to appease the Semantic PR bot Co-authored-by: Kevin Song <chips@ksong.dev>
This commit is contained in:
parent
94d7de7f4e
commit
671365b505
|
@ -173,23 +173,23 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> {
|
||||||
starship.sprint_posix()?
|
starship.sprint_posix()?
|
||||||
),
|
),
|
||||||
_ => {
|
_ => {
|
||||||
let quoted_arg = shell_words::quote(shell_basename);
|
eprintln!(
|
||||||
println!(
|
"{0} is not yet supported by starship.\n\
|
||||||
"printf \"\\n%s is not yet supported by starship.\\n\
|
For the time being, we support the following shells:\n\
|
||||||
For the time being, we support the following shells:\\n\
|
* bash\n\
|
||||||
* bash\\n\
|
* elvish\n\
|
||||||
* elvish\\n\
|
* fish\n\
|
||||||
* fish\\n\
|
* ion\n\
|
||||||
* ion\\n\
|
* powershell\n\
|
||||||
* powershell\\n\
|
* tcsh\n\
|
||||||
* tcsh\\n\
|
* zsh\n\
|
||||||
* zsh\\n\
|
* nu\n\
|
||||||
* nu\\n\
|
* xonsh\n\
|
||||||
* xonsh\\n\
|
\n\
|
||||||
\\n\
|
|
||||||
Please open an issue in the starship repo if you would like to \
|
Please open an issue in the starship repo if you would like to \
|
||||||
see support for %s:\\nhttps://github.com/starship/starship/issues/new\\n\\n\" {0} {0}",
|
see support for {0}:\n\
|
||||||
quoted_arg
|
https://github.com/starship/starship/issues/new\n",
|
||||||
|
shell_basename
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue