Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/installing-mise.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,10 @@ echo 'mise activate pwsh | Out-String | Invoke-Expression' >> $HOME\Documents\Po

Nu
does [not support `eval`](https://www.nushell.sh/book/how_nushell_code_gets_run.html#eval-function)
Install Mise by appending `env.nu` and `config.nu`:
Install Mise by activating it into the autoload dir:

```nushell
'
let mise_path = $nu.default-config-dir | path join mise.nu
^mise activate nu | save $mise_path --force
' | save $nu.env-path --append
"\nuse ($nu.default-config-dir | path join mise.nu)" | save $nu.config-path --append
'^mise activate nu | save --force ($nu.data-dir | path join vendor autoload mise.nu)' | save $nu.config-path --append

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdx note that this fails if .local/share/nushell/vendor/autoload doesn't already exist (it probably doesn't by default; it wasn't created automatically for me).

Suggested change
'^mise activate nu | save --force ($nu.data-dir | path join vendor autoload mise.nu)' | save $nu.config-path --append
mkdir ($nu.data-dir | path join vendor autoload mise.nu)
'^mise activate nu | save --force ($nu.data-dir | path join vendor autoload mise.nu)' | save $nu.config-path --append

```

Comment thread
Joniator marked this conversation as resolved.
If you prefer to keep your dotfiles clean you can save it to a different directory then
Expand Down
Loading