fix: shell execution for fish

This commit is contained in:
iff 2023-08-12 23:09:56 +02:00
parent 1d78b20404
commit 3e9678506a
2 changed files with 3 additions and 3 deletions

View file

@ -2,13 +2,13 @@ command = "cd"
[[match_err]] [[match_err]]
pattern = [ pattern = [
"no such file or directory" "no such file or directory",
"does not exist"
] ]
# as rust runs on its own environment, it's not possible to change # as rust runs on its own environment, it's not possible to change
# the directory automatically # the directory automatically
suggest = [ suggest = [
''' '''
#[err_contains(no such file or directory)]
mkdir -p {{command[1]}} mkdir -p {{command[1]}}
cd {{command[1]}} ''' cd {{command[1]}} '''
] ]

View file

@ -203,7 +203,7 @@ pub fn initialization(shell: &str, binary_path: &str, auto_alias: &str) {
init = format!( init = format!(
r#" r#"
function {} -d "Terminal command correction" function {} -d "Terminal command correction"
{} eval $({})
end end
"#, "#,
auto_alias, init auto_alias, init