mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
rules: better rm suggestion
This commit is contained in:
parent
7a05ad56fc
commit
2d990b74fc
1 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,12 @@
|
|||
command = "rm"
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "is a directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command}} --recursive'''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "no such file or directory", ]
|
||||
suggest = [
|
||||
|
|
@ -7,9 +14,3 @@ suggest = [
|
|||
{{command[0}} {{opt(-*)}} {{typo[-1](file)}}'''
|
||||
]
|
||||
|
||||
[[match_err]]
|
||||
pattern = [ "is a directory", ]
|
||||
suggest = [
|
||||
'''
|
||||
{{command[0]}} {{opt(-*)}} --recursive {{command[1:]}}'''
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue