I'm a Linux native guy and I haven't hardly touched Windows in years but I still find myself curious about PowerShell. Is PowerShell even remotely suitable as a Linux shell? Is there any hope for PowerShell on Linux, it's an interesting take on shells.
I switched my shell to pwsh a few years back when work had me doing heavy pwsh development. It worked, but…
1. It didn’t execute native commands directly, at least then, so I was cobbling together pwsh functions to imitate ls, etc.
2. The pipeline is awesome, but incompatible with the default UNIX/style, where commands produce and expect text.
Having said all of that, it worked and worked well, at least for my purposes (immersion and education).
The pwsh pipeline is far more powerful, esp. since it passes objects and can maintain those: command B can perform work on the results of command A and C can access the results of both A and B with relative ease. The same trick is possible in bash, e.g., but requires some funky redirect and pipe management.
One the pwsh work was done, I switched back to bash.
I have been using Powershell, primarily on Windows, as my primary shell for a few years. I honestly prefer it to bash. I don't set it as my default shell on Linux, but that's because 99% of my bash usage (and the majority of my Linux usage) these days is explicitly to test a piece of code written in bash.
(Concrete better: copy-paste, selecting with the mouse, scrolling all just work. Copy-paste pastes multiline by default so you don't end up executing commands without a chance to review.)
I've been wanting to try out elvish which seems like it might be a cleaner and more "unixy" pwsh. https://elv.sh/
nushell has a similar philosophy to PowerShell but without the strange command names. PowerShell is probably tied too deeply to Windows and .NET to be suitable as a Linux shell