mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
docs(nu): add tip on init using OMP installed via Homebrew
This commit is contained in:
parent
d5a8ec3285
commit
b19316a0ee
|
@ -166,6 +166,18 @@ source /mylocation/myscript.nu
|
|||
|
||||
Once altered, restart Nushell for the changes to take effect.
|
||||
|
||||
:::tip
|
||||
For the time being, there is a [problem][homebrew-problem] with the initialization using Oh My Posh installed via Homebrew.
|
||||
To resolve this, you can use the `--strict` flag which tells Oh My Posh to use the executable name and not the
|
||||
full path in the initialization. For example:
|
||||
|
||||
```bash
|
||||
oh-my-posh init nu --config ~/.jandedobbeleer.omp.json --print --strict | save /mylocation/myscript.nu
|
||||
```
|
||||
|
||||
This way for a new Oh My Posh version that does not update the initialization script, you don't have to recreate a new one.
|
||||
:::
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
@ -212,3 +224,4 @@ segments section covers how to configure each available segment.
|
|||
[default-theme]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/default.omp.json
|
||||
[jandedobbeleer]: /docs/themes#jandedobbeleer
|
||||
[json-schema]: https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
[homebrew-problem]: https://github.com/JanDeDobbeleer/oh-my-posh/discussions/2644
|
||||
|
|
|
@ -187,8 +187,21 @@ source /mylocation/myscript.nu
|
|||
|
||||
Once added, restart Nushell for the changes to take effect.
|
||||
|
||||
:::tip
|
||||
For the time being, there is a [problem][homebrew-problem] with the initialization using Oh My Posh installed via Homebrew.
|
||||
To resolve this, you can use the `--strict` flag which tells Oh My Posh to use the executable name and not the
|
||||
full path in the initialization. For example:
|
||||
|
||||
```bash
|
||||
oh-my-posh init nu --print --strict | save /mylocation/myscript.nu
|
||||
```
|
||||
|
||||
This way for a new Oh My Posh version that does not update the initialization script, you don't have to recreate a new one.
|
||||
:::
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[clink]: https://chrisant996.github.io/clink/
|
||||
[iterm2]: https://www.iterm2.com/
|
||||
[homebrew-problem]: https://github.com/JanDeDobbeleer/oh-my-posh/discussions/2644
|
||||
|
|
Loading…
Reference in a new issue