docs: adjust install guide for consistency

resolves #1452
This commit is contained in:
Jan De Dobbeleer 2021-12-17 20:57:53 +01:00 committed by Jan De Dobbeleer
parent 181d906e8a
commit e887f4ecea
2 changed files with 6 additions and 5 deletions

View file

@ -58,6 +58,7 @@ rm ~/.poshthemes/themes.zip
The guides below assume you copied the theme called `jandedobbeleer.omp.json` to your user's `$HOME` folder.
When you've downloaded the themes, you can find this one at `~/.poshthemes/jandedobbeleer.omp.json`.
</TabItem>
</Tabs>

View file

@ -70,7 +70,7 @@ Once added, restart cmd for the changes to take effect.
Add the following to `~/.zshrc`:
```bash
eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/jandedobbeleer.omp.json)"
eval "$(oh-my-posh --init --shell zsh --config ~/jandedobbeleer.omp.json)"
```
Once added, reload your profile for the changes to take effect.
@ -85,7 +85,7 @@ source ~/.zshrc
Add the following to `~/.bashrc` (could be `~/.profile` or `~/.bash_profile` depending on your environment):
```bash
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
eval "$(oh-my-posh --init --shell bash --config ~/jandedobbeleer.omp.json)"
```
Once added, reload your profile for the changes to take effect.
@ -110,7 +110,7 @@ It's advised to be on the latest version of fish. Versions below 3.1.2 have issu
Initialize Oh My Posh in `~/.config/fish/config.fish`:
```bash
oh-my-posh --init --shell fish --config ~/.poshthemes/jandedobbeleer.omp.json | source
oh-my-posh --init --shell fish --config ~/jandedobbeleer.omp.json | source
```
Once added, reload your config for the changes to take effect.
@ -127,13 +127,13 @@ Set the prompt and restart nu shell:
### Nu < 0.32.0
```bash
config set prompt "= `{{$(oh-my-posh --config ~/.poshthemes/jandedobbeleer.omp.json | str collect)}}`"
config set prompt "= `{{$(oh-my-posh --config ~/jandedobbeleer.omp.json | str collect)}}`"
```
### Nu >= 0.32.0
```bash
config set prompt "(oh-my-posh --config ~/.poshthemes/jandedobbeleer.omp.json | str collect)"
config set prompt "(oh-my-posh --config ~/jandedobbeleer.omp.json | str collect)"
```
Restart nu shell for the changes to take effect.