Skip to content

Commit

Permalink
docs: clean up activation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 12, 2025
1 parent 3df60dd commit 8ab4bce
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@ echo 'eval "$(mise activate zsh)"' >> ~/.zshrc

== Windows

Only shims are supported for now on Windows.
- When using `scoop`, mise is automatically activated
- If not using powershell, add `<homedir>\AppData\Local\mise\shims` to `PATH`.

- When using `scoop`, the shims are automatically added to your `PATH`.
- With `winget`, you need to add `<homedir>\AppData\Local\mise\shims` to your `PATH`.

```powershell
$shimPath = "$env:USERPROFILE\AppData\Local\mise\shims"
$currentPath = [Environment]::GetEnvironmentVariable('Path', 'User')
$newPath = $currentPath + ";" + $shimPath
[Environment]::SetEnvironmentVariable('Path', $newPath, 'User')
```
```powershell [powershell]
$shimPath = "$env:USERPROFILE\AppData\Local\mise\shims"
$currentPath = [Environment]::GetEnvironmentVariable('Path', 'User')
$newPath = $currentPath + ";" + $shimPath
[Environment]::SetEnvironmentVariable('Path', $newPath, 'User')
```

== Other package managers

Expand Down

0 comments on commit 8ab4bce

Please sign in to comment.