pay-respects/rules/touch.toml

18 lines
313 B
TOML
Raw Normal View History

2023-08-07 18:35:07 +02:00
command = "touch"
[[match_err]]
pattern = [ "cannot touch" ]
2023-08-07 18:35:07 +02:00
suggest = [
'''
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} && \
2023-08-07 18:35:07 +02:00
touch {{command[1:]}} '''
]
[[match_err]]
pattern = [ "nu::shell::create_not_possible" ]
suggest = [
'''
mkdir {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} and \
touch {{command[1:]}} '''
]