rules: updated for nushell compatibilities

This commit is contained in:
iff 2023-08-12 23:35:00 +02:00
parent 12e4ac7093
commit 5d66f5c1ce
3 changed files with 27 additions and 6 deletions

View file

@ -1,14 +1,20 @@
command = "rm"
[[match_err]]
pattern = [ "is a directory" ]
pattern = [
"is a directory",
"try --recursive"
]
suggest = [
'''
{{command}} --recursive '''
]
[[match_err]]
pattern = [ "no such file or directory" ]
pattern = [
"no such file or directory",
"file(s) not found"
]
suggest = [
'''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[1:](file)}} '''