docs: update install prompt config for nu 0.60.0

This commit is contained in:
LensPlaysGames 2022-03-24 01:09:51 -07:00 committed by Jan De Dobbeleer
parent f9c160b937
commit 15c11f6f1c
No known key found for this signature in database
GPG key ID: F6CC273CE5BA9AEE
2 changed files with 14 additions and 0 deletions

View file

@ -104,6 +104,13 @@ config set prompt "= `{{$(oh-my-posh prompt print primary --config ~/.jandedobb
config set prompt "(oh-my-posh prompt print primary --config ~/.jandedobbeleer.omp.json | str collect)"
```
**Nu >= 0.60.0**
```bash
let-env PROMPT_COMMAND = { oh-my-posh prompt print primary --config ~/.jandedobbeleer.omp.json }
let-env PROMPT_COMMAND_RIGHT = { oh-my-posh prompt print right --config ~/.jandedobbeleer.omp.json }
```
Once altered, restart nu shell for the changes to take effect.
</TabItem>

View file

@ -148,6 +148,13 @@ config set prompt "= `{{$(oh-my-posh prompt print primary | str collect)}}`"
config set prompt "(oh-my-posh prompt print primary | str collect)"
```
**Nu >= 0.60.0**
```bash
let-env PROMPT_COMMAND = { oh-my-posh prompt print primary }
let-env PROMPT_COMMAND_RIGHT = { oh-my-posh prompt print right }
```
Restart nu shell for the changes to take effect.
</TabItem>