chore: update initialization

This commit is contained in:
iff 2025-01-03 20:48:46 +01:00
parent c93f5b5cf5
commit 2aee748af3

View file

@ -545,13 +545,20 @@ def --env {} [] {{
match shell.as_str() {
"bash" | "zsh" => {
initialize = format!(r#"alias {}='{}'"#, alias, initialize);
initialize = format!(
r#"
{} () {{
{}
}}
"#,
alias, initialize
);
}
"fish" => {
initialize = format!(
r#"
function {} -d "Terminal command correction"
eval $({})
function {} -d "Suggest fixes to the previous command"
{}
end
"#,
alias, initialize