fix: things with nushell

This commit is contained in:
iff 2025-04-05 01:15:41 +02:00
parent e1e9c14b47
commit 58b6a65a75
6 changed files with 15 additions and 10 deletions

View file

@ -4,14 +4,19 @@ command = "touch"
pattern = [ "no such file or directory" ]
suggest = [
'''
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} && \
#[!shell(nu)]
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} &&
touch {{command[1:]}} '''
]
[[match_err]]
pattern = [ "nu::shell::create_not_possible" ]
pattern = [
"nu::shell::create_not_possible",
"no such file or directory",
]
suggest = [
'''
mkdir {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} and \
#[shell(nu)]
mkdir {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}};
touch {{command[1:]}} '''
]