When using nushell, chaining command with && does not work as it is not a supported operator. The replacement for && in nushell is ;, see Coming from Bash.
This PR adds a check if the current shell (as defined by the environment variable $SHELL) is nu. If that's the case, we use ; as the command chaining operator.
I am not a lua programmer so this is a best effort fix. Please let me know if I can improve anything.
When using nushell, chaining command with
&&
does not work as it is not a supported operator. The replacement for&&
in nushell is;
, see Coming from Bash.This PR adds a check if the current shell (as defined by the environment variable $SHELL) is
nu
. If that's the case, we use;
as the command chaining operator.I am not a lua programmer so this is a best effort fix. Please let me know if I can improve anything.