fix: negative index

This commit is contained in:
iff 2024-11-16 00:59:33 +01:00
parent 7b9cecfd8d
commit ff7f27f250
3 changed files with 18 additions and 6 deletions

12
rules/mv.toml Normal file
View file

@ -0,0 +1,12 @@
command = "mv"
[[match_err]]
pattern = [
"no such file or directory"
]
suggest = [
'''
mkdir --parents {{command[-1]}} && \
{{command}} '''
]