1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-26 19:40:20 +00:00

fix(nu): don't use cygpath for starship binary path in init (#4001)

nu on windows need not be posix
This commit is contained in:
Tyler Ruckinger 2022-06-02 17:46:46 -04:00 committed by GitHub
parent 89fd5320af
commit 9b52475e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> {
r#"eval `({} init tcsh --print-full-init)`"#, r#"eval `({} init tcsh --print-full-init)`"#,
starship.sprint_posix()? starship.sprint_posix()?
), ),
"nu" => print_script(NU_INIT, &StarshipPath::init()?.sprint_posix()?), "nu" => print_script(NU_INIT, &StarshipPath::init()?.sprint()?),
"xonsh" => print!( "xonsh" => print!(
r#"execx($({} init xonsh --print-full-init))"#, r#"execx($({} init xonsh --print-full-init))"#,
starship.sprint_posix()? starship.sprint_posix()?