nvm icon indicating copy to clipboard operation
nvm copied to clipboard

Please support powershell on Linux

Open AceHack opened this issue 1 year ago • 8 comments
trafficstars

There are no .ps1 files so this can't work on pwsh linux

AceHack avatar Jan 22 '24 06:01 AceHack

I'm not familiar with that - powershell is a windows thing, why would anyone use it on linux?

ljharb avatar Jan 22 '24 17:01 ljharb

I'm not familiar with that - powershell is a windows thing, why would anyone use it on linux?

By using PowerShell, many features are added to the terminal. Additionally, we want to use a unified terminal across all environments.

hamedprog avatar Mar 30 '24 15:03 hamedprog

I’d expect the way to do that is WSL - iow, using the universal thing on windows, instead of trying to make everything else match the outlier.

ljharb avatar Mar 30 '24 15:03 ljharb

I’d expect the way to do that is WSL - iow, using the universal thing on windows, instead of trying to make everything else match the outlier.

What do you mean?

ewancg avatar Apr 22 '24 04:04 ewancg

Additionally, we want to use a unified terminal across all environments.

If you want "all environments", then a windows-only solution is never going to achieve that - since Windows has linux via WSL, the only available "all environments" solution is one that works on linux (and WSL2).

ljharb avatar Apr 22 '24 04:04 ljharb

How is powershell not also an "all environments" solution? It runs on Linux and macOS as well

ewancg avatar Apr 22 '24 04:04 ewancg

ok, fair - that truly is brand new information for me - but either way, it's not POSIX-compliant, so it's unlikely nvm can ever add support for it. However, since it's available on those OS's, a PR could certainly be made that would run tests on it - at which point, I could look into fixing them.

Instead of installing a windows tool on non-windows machines, you'll be much better off using a non-windows tool whenever the option is available - then the only environment you have to change is the least-desirable one.

ljharb avatar Apr 22 '24 04:04 ljharb