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]]
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
# the directory automatically
suggest = [
'''
#[err_contains(no such file or directory)]
mkdir -p {{command[1]}}
cd {{command[1]}} '''
]

View file

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