@ -99,35 +145,14 @@ Then apply the changes the installer prints, to set up your shell profile.
- On Windows, the profile is located at `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
- On Windows, the profile is located at `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
- For Mac/Linux, the profile is located at `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
- For Mac/Linux, the profile is located at `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
- For **WinCMD**, aka good old **Windows Command Prompt** or **Batch**, fnm is also supported but is not entirely covered. [You can set up a startup script](https://superuser.com/a/144348) and append the following line:
#### Windows Command Prompt aka Batch aka WinCMD
```
fnm is also supported but is not entirely covered. [You can set up a startup script](https://superuser.com/a/144348) and append the following line:
FOR /f "tokens=*" %i IN ('fnm env --use-on-cd') DO CALL %i
```
#### Using Cargo (Linux/Mac/Windows)
```bash
cargo install fnm
```
```
FOR /f "tokens=*" %i IN ('fnm env --use-on-cd') DO CALL %i
## Completions
fnm ships its completions with the binary:
```
fnm completions --shell <SHELL>
```
```
Where `<SHELL>` can be one of the supported shells:
- `bash`
- `zsh`
- `fish`
- `powershell`
Please follow your shell instructions to install them.