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]]
|
||||
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]}} '''
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue