Is there a way to separate multiple commands such as I would normally do with a semicolon in bash?
git pull; git push
Would it make sense to add a feature like that?
This isn't yet supported, but we'd like to add support for it, or something like it.
To summarize, we have three ways of doing multiple commands in most other shells:
a; b, always run both a and ba && b, only run b if a was successfula || b, only run b if a was unsuccessfulWe don't really need (1) or (2) in scripts, but they're useful on the command-line . For example, when I go back through my history, I like using one-liners to re-run some set of commands. That being said, nu could take a completely different approach to this without sacrificing a good user experience. Something to think about 馃檪
nu 0.13 has semicolon support, so this code works now:
git pull; git push
Most helpful comment
nu 0.13 has semicolon support, so this code works now: