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

@ -694,7 +694,7 @@ pub fn get_shell() -> String {
pub fn shell_syntax(shell: &str, command: &str) -> String {
#[allow(clippy::single_match)]
match shell {
"nu" => command.replace("&&", ";").to_string(),
"nu" => command.replace("&&\n", ";\n").to_string(),
_ => command.to_string(),
}
}