Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support powershell on Linux #3270

Open
AceHack opened this issue Jan 22, 2024 · 7 comments
Open

Please support powershell on Linux #3270

AceHack opened this issue Jan 22, 2024 · 7 comments
Labels
feature requests I want a new feature in nvm! pull request wanted This is a great way to contribute! Help us out :-D

Comments

@AceHack
Copy link

AceHack commented Jan 22, 2024

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

@ljharb
Copy link
Member

ljharb commented Jan 22, 2024

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

@hamedprog
Copy link

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.

@ljharb
Copy link
Member

ljharb commented Mar 30, 2024

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.

@ewancg
Copy link

ewancg commented Apr 22, 2024

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?

@ljharb
Copy link
Member

ljharb commented Apr 22, 2024

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).

@ewancg
Copy link

ewancg commented Apr 22, 2024

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

@ljharb
Copy link
Member

ljharb commented Apr 22, 2024

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 ljharb added feature requests I want a new feature in nvm! pull request wanted This is a great way to contribute! Help us out :-D labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm! pull request wanted This is a great way to contribute! Help us out :-D
Projects
None yet
Development

No branches or pull requests

4 participants