mirror of
https://github.com/starship/starship.git
synced 2024-11-25 17:54:08 +01:00
formatting
This commit is contained in:
parent
eff714d784
commit
5d0c5d976f
@ -174,7 +174,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()?
|
||||||
),
|
),
|
||||||
"mksh" => print!(
|
"mksh" => print!(
|
||||||
r#"eval "$({} init mksh --print-full-init)""#,
|
r#"eval "$({} init mksh --print-full-init)""#,
|
||||||
starship.sprint_posix()?
|
starship.sprint_posix()?
|
||||||
),
|
),
|
||||||
@ -217,7 +217,7 @@ pub fn init_main(shell_name: &str) -> io::Result<()> {
|
|||||||
|
|
||||||
match shell_name {
|
match shell_name {
|
||||||
"bash" => print_script(BASH_INIT, &starship_path.sprint_posix()?),
|
"bash" => print_script(BASH_INIT, &starship_path.sprint_posix()?),
|
||||||
"mksh" => print_script(MKSH_INIT, &starship_path.sprint_posix()?),
|
"mksh" => print_script(MKSH_INIT, &starship_path.sprint_posix()?),
|
||||||
"zsh" => print_script(ZSH_INIT, &starship_path.sprint_posix()?),
|
"zsh" => print_script(ZSH_INIT, &starship_path.sprint_posix()?),
|
||||||
"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()?),
|
||||||
|
Loading…
Reference in New Issue
Block a user