rules: cd and cat

This commit is contained in:
iff 2023-08-06 02:26:09 +02:00
parent 48becb3e67
commit 87fa88891b
2 changed files with 35 additions and 0 deletions

21
rules/cat.toml Normal file
View file

@ -0,0 +1,21 @@
command = "cat"
[[match_err]]
pattern = [
"no such file or directory"
]
suggest = [
'''
cat {{typo[1](file)}}
'''
]
[[match_err]]
pattern = [
"is a directory"
]
suggest = [
'''
ls {{command[1:]}} --almost-all --color=auto --group-directories-first
'''
]