:earth_americas: Cross-platform support (Mac, Windows, Linux)
:earth_americas: Cross-platform support (macOS, Windows, Linux)
:sparkles: Single file, easy installation, instant startup
@ -22,17 +22,17 @@
@@ -22,17 +22,17 @@
## Installation
### Using a script (MacOS/Linux)
### Using a script (macOS/Linux)
For `bash`, `zsh` and `fish` shells, there's an [automatic installation script](./.ci/install.sh):
```bash
```sh
curl -fsSL https://fnm.vercel.app/install | bash
```
#### Upgrade
On OSX, it is a simple as `brew upgrade fnm`.
On macOS, it is as simple as `brew upgrade fnm`.
On other operating systems, upgrading `fnm` is almost the same as installing it. To prevent duplication in your shell config file add `--skip-shell` to install command.
@ -48,19 +48,19 @@ Skip appending shell specific loader to shell config file, based on the current
@@ -48,19 +48,19 @@ Skip appending shell specific loader to shell config file, based on the current
`--force-install`
MacOS installations using the installation script are deprecated in favor of the Homebrew formula, but this forces the script to install using it anyway.
macOS installations using the installation script are deprecated in favor of the Homebrew formula, but this forces the script to install using it anyway.
- 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 macOS/Linux, the profile is located at `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
#### 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:
```
```batch
FOR /f "tokens=*" %i IN ('fnm env --use-on-cd') DO CALL %i
```
@ -157,7 +157,7 @@ FOR /f "tokens=*" %i IN ('fnm env --use-on-cd') DO CALL %i
@@ -157,7 +157,7 @@ FOR /f "tokens=*" %i IN ('fnm env --use-on-cd') DO CALL %i