diff --git a/src/init/mod.rs b/src/init/mod.rs index f0b247c9..90399a18 100644 --- a/src/init/mod.rs +++ b/src/init/mod.rs @@ -153,10 +153,7 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> { "#, starship.sprint_posix()? ), - "zsh" => print!( - r#"source <({} init zsh --print-full-init)"#, - starship.sprint_posix()? - ), + "zsh" => print_script(ZSH_INIT, &starship.sprint_posix()?), "fish" => print!( // Fish does process substitution with pipes and psub instead of bash syntax r#"source ({} init fish --print-full-init | psub)"#,