pay-respects/rules/touch.toml

9 lines
174 B
TOML

command = "touch"
[[match_err]]
pattern = [ "No such file or directory" ]
suggest = [
'''
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} && \
touch {{command[1:]}} '''
]