pay-respects/rules/rm.toml

16 lines
232 B
TOML
Raw Normal View History

2023-07-31 23:42:19 +02:00
command = "rm"
[[match_err]]
pattern = [ "no such file or directory", ]
suggest = [
'''
{{command[:-2]}} {{typo[-1](file)}}'''
]
2023-08-01 00:12:55 +02:00
[[match_err]]
pattern = [ "is a directory", ]
suggest = [
'''
{{command[0]}} -r {{command[1:]}}'''
]