fix(init): do not use cygpath for elvish (#6376)

This commit is contained in:
Balthild 2024-11-09 07:08:36 -06:00 committed by GitHub
parent 639c7c6285
commit 576aa14d15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,7 +215,7 @@ pub fn init_main(shell_name: &str) -> io::Result<()> {
"fish" => print_script(FISH_INIT, &starship_path.sprint_posix()?), "fish" => print_script(FISH_INIT, &starship_path.sprint_posix()?),
"powershell" => print_script(PWSH_INIT, &starship_path.sprint_pwsh()?), "powershell" => print_script(PWSH_INIT, &starship_path.sprint_pwsh()?),
"ion" => print_script(ION_INIT, &starship_path.sprint()?), "ion" => print_script(ION_INIT, &starship_path.sprint()?),
"elvish" => print_script(ELVISH_INIT, &starship_path.sprint_posix()?), "elvish" => print_script(ELVISH_INIT, &starship_path.sprint()?),
"tcsh" => print_script(TCSH_INIT, &starship_path.sprint_posix()?), "tcsh" => print_script(TCSH_INIT, &starship_path.sprint_posix()?),
"xonsh" => print_script(XONSH_INIT, &starship_path.sprint_posix()?), "xonsh" => print_script(XONSH_INIT, &starship_path.sprint_posix()?),
_ => { _ => {