mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: things with nushell
This commit is contained in:
parent
e1e9c14b47
commit
58b6a65a75
6 changed files with 15 additions and 10 deletions
|
|
@ -4,14 +4,19 @@ command = "touch"
|
|||
pattern = [ "no such file or directory" ]
|
||||
suggest = [
|
||||
'''
|
||||
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} && \
|
||||
#[!shell(nu)]
|
||||
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} &&
|
||||
touch {{command[1:]}} '''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "nu::shell::create_not_possible" ]
|
||||
pattern = [
|
||||
"nu::shell::create_not_possible",
|
||||
"no such file or directory",
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
mkdir {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} and \
|
||||
#[shell(nu)]
|
||||
mkdir {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}};
|
||||
touch {{command[1:]}} '''
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue