|
|
|
|
|
by __MatrixMan__
856 days ago
|
|
Nushell is great fun, but be prepared to encounter and fix errors when you paste code designed for sh/bash/zsh/fish. It's a much bigger step away from convention than the others. I think the one that catches me off guard the most is: export FOO=bar
BAZ=qux
Is now $env.FOO = "bar"
BAZ = "qux"
It makes more sense the nu way, but old habits die hard. |
|
For short snippets, better to read, understand, and translate as you type.
For some shell integrations or environment setup tools, use fenv or babelfish.
For scripts of any length, just save it and run it. The shebang'll invoke bash or whatever is needed.