chore: rearrange directories

This commit is contained in:
iff 2024-12-08 16:52:53 +01:00
parent d5fb7462e0
commit 4c9aac45a8
46 changed files with 11 additions and 18 deletions

26
core/rules/cd.toml Normal file
View 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]}} '''
]