mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: shell execution for fish
This commit is contained in:
parent
1d78b20404
commit
3e9678506a
2 changed files with 3 additions and 3 deletions
|
|
@ -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]}} '''
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue