pay-respects/rules/rm.toml
2023-08-01 00:12:55 +02:00

15 lines
232 B
TOML

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