2022-07-01 13:48:30 -07:00
|
|
|
A [Homebrew][brew] formula is available for easy installation. When installing Homebrew for Linux,
|
|
|
|
be sure to follow *[Next steps][nextsteps]* instructions to add Homebrew to your PATH and to your
|
|
|
|
bash shell profile script, and *[Requirements][requirements]* to build Oh My Posh.
|
2021-11-25 23:51:29 -08:00
|
|
|
|
|
|
|
```bash
|
2022-04-11 05:16:47 -07:00
|
|
|
brew install jandedobbeleer/oh-my-posh/oh-my-posh
|
2021-11-25 23:51:29 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
This installs two things:
|
|
|
|
|
2022-04-11 05:16:47 -07:00
|
|
|
- `oh-my-posh` - Executable, added to `$(brew --prefix)/bin`
|
2021-11-28 06:21:27 -08:00
|
|
|
- `themes` - The latest Oh My Posh [themes][themes]
|
2021-11-25 23:51:29 -08:00
|
|
|
|
2022-04-17 19:55:46 -07:00
|
|
|
If you want to use a standard theme, you can find them in `$(brew --prefix oh-my-posh)/themes`, referencing them as such
|
2021-11-27 11:58:33 -08:00
|
|
|
will always keep them compatible when updating Oh My Posh.
|
2021-11-25 23:51:29 -08:00
|
|
|
|
2021-11-27 11:58:33 -08:00
|
|
|
## Update
|
2021-11-25 23:51:29 -08:00
|
|
|
|
|
|
|
```bash
|
2021-11-29 23:25:14 -08:00
|
|
|
brew update && brew upgrade oh-my-posh
|
2021-11-25 23:51:29 -08:00
|
|
|
```
|
|
|
|
|
2021-11-29 23:25:14 -08:00
|
|
|
:::tip
|
|
|
|
In case you see [strange behaviour][strange] in your shell, reload it after upgrading Oh My Posh.
|
|
|
|
For example in zsh:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brew update && brew upgrade && exec zsh
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
2021-12-16 10:53:03 -08:00
|
|
|
[brew]: https://brew.sh
|
2022-07-01 13:48:30 -07:00
|
|
|
[requirements]: https://docs.brew.sh/Homebrew-on-Linux#requirements
|
2021-12-15 15:25:12 -08:00
|
|
|
[nextsteps]: https://docs.brew.sh/Homebrew-on-Linux#install
|
2021-11-28 06:21:27 -08:00
|
|
|
[themes]: https://ohmyposh.dev/docs/themes
|
2021-11-29 23:25:14 -08:00
|
|
|
[strange]: https://github.com/JanDeDobbeleer/oh-my-posh/issues/1287
|