From 2aee748af392eddce782ba7b9660c9b8b9e1f00d Mon Sep 17 00:00:00 2001 From: iff Date: Fri, 3 Jan 2025 20:48:46 +0100 Subject: [PATCH] chore: update initialization --- core/src/shell.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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