mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
chore: rearrange directories
This commit is contained in:
parent
d5fb7462e0
commit
4c9aac45a8
46 changed files with 11 additions and 18 deletions
26
core/rules/cd.toml
Normal file
26
core/rules/cd.toml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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]}} '''
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue