feat: optional arguments

This commit is contained in:
iff 2023-08-01 17:41:41 +02:00
parent eb59cbde7f
commit 7a05ad56fc
5 changed files with 63 additions and 20 deletions

12
rules/general.toml Normal file
View file

@ -0,0 +1,12 @@
command = "general"
[[match_err]]
pattern = [
"command not found",
"unknown command",
"nu::shell::external_command",
]
suggest = [
'''
{{typo[0](path)}} {{command[1:]}}'''
]