mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
26 lines
342 B
TOML
26 lines
342 B
TOML
command = "cd"
|
|
|
|
[[match_err]]
|
|
pattern = [
|
|
"no such file or directory",
|
|
"does not exist"
|
|
]
|
|
suggest = [
|
|
'''
|
|
cd {{typo[1](file)}}
|
|
''',
|
|
'''
|
|
#[!shell(nu)]
|
|
mkdir --parents {{command[1]}} && \
|
|
cd {{command[1]}} '''
|
|
]
|
|
|
|
[[match_err]]
|
|
pattern = [
|
|
"nu::shell::directory_not_found"
|
|
]
|
|
suggest = [
|
|
'''
|
|
mkdir {{command[1]}} and \
|
|
cd {{command[1]}} '''
|
|
]
|