chore: move rules to root

This commit is contained in:
iff 2024-12-08 21:13:22 +01:00
parent 79264e1a4e
commit 0c7277f910
18 changed files with 2 additions and 2 deletions

26
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]}} '''
]