feat: match file

This commit is contained in:
iff 2023-07-31 23:42:19 +02:00
parent 5858b5b88b
commit 7cfe075da6
5 changed files with 94 additions and 25 deletions

8
rules/rm.toml Normal file
View file

@ -0,0 +1,8 @@
command = "rm"
[[match_err]]
pattern = [ "no such file or directory", ]
suggest = [
'''
{{command[:-2]}} {{typo[-1](file)}}'''
]