diff --git a/core/src/shell.rs b/core/src/shell.rs index 6a3378d..5b06a42 100644 --- a/core/src/shell.rs +++ b/core/src/shell.rs @@ -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