mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +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"
|
command = "rm"
|
||||||
|
|
||||||
|
[[match_err]]
|
||||||
|
pattern = [ "is a directory", ]
|
||||||
|
suggest = [
|
||||||
|
'''
|
||||||
|
{{command}} --recursive'''
|
||||||
|
]
|
||||||
|
|
||||||
[[match_err]]
|
[[match_err]]
|
||||||
pattern = [ "no such file or directory", ]
|
pattern = [ "no such file or directory", ]
|
||||||
suggest = [
|
suggest = [
|
||||||
|
|
@ -7,9 +14,3 @@ suggest = [
|
||||||
{{command[0}} {{opt(-*)}} {{typo[-1](file)}}'''
|
{{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