mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
rules: updated for nushell compatibilities
This commit is contained in:
parent
12e4ac7093
commit
5d66f5c1ce
3 changed files with 27 additions and 6 deletions
|
|
@ -1,14 +1,20 @@
|
|||
command = "rm"
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "is a directory" ]
|
||||
pattern = [
|
||||
"is a directory",
|
||||
"try --recursive"
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
{{command}} --recursive '''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "no such file or directory" ]
|
||||
pattern = [
|
||||
"no such file or directory",
|
||||
"file(s) not found"
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[1:](file)}} '''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue