We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d905e0 commit 00d927bCopy full SHA for 00d927b
src/init/mod.rs
@@ -156,7 +156,11 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> {
156
starship.sprint_posix()?
157
),
158
"zsh" => print_script(ZSH_INIT, &starship.sprint_posix()?),
159
- "fish" => print_script(FISH_INIT, &starship.sprint_posix()?),
+ "fish" => print!(
160
+ // Fish does process substitution with pipes and psub instead of bash syntax
161
+ r#"source ({} init fish --print-full-init | psub)"#,
162
+ starship.sprint_posix()?
163
+ ),
164
"powershell" => print!(
165
r#"Invoke-Expression (& {} init powershell --print-full-init | Out-String)"#,
166
starship.sprint_pwsh()?
0 commit comments