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

The setup script is different for PowerShell7 #1346

Open
kuguma opened this issue Dec 18, 2024 · 1 comment
Open

The setup script is different for PowerShell7 #1346

kuguma opened this issue Dec 18, 2024 · 1 comment

Comments

@kuguma
Copy link

kuguma commented Dec 18, 2024

Suggest corrections to the documentation.

https://github.com/Schniz/fnm?tab=readme-ov-file#powershell

For PowerShell7, we need to specify power-shell (not powershell) with --shell. 😫😫😫

@ravindUwU
Copy link

ravindUwU commented Dec 21, 2024

I think power-shell is an alias for powershell, they both work for PowerShell 7, and the docs are correct? 🤔

fnm/src/shell/shell.rs

Lines 21 to 22 in ceee448

#[clap(name = "powershell", alias = "power-shell")]
PowerShell,

PS ~> fnm env --shell uwu
error: invalid value 'uwu' for '--shell <SHELL>'
  [possible values: bash, zsh, fish, powershell, cmd]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants