oh-my-posh/website/docs/installation/homebrew.mdx

33 lines
857 B
Plaintext
Raw Normal View History

2023-10-01 04:47:12 -07:00
A [Homebrew][brew] Formula and Cask (macOS only) are available for easy installation.
2021-11-25 23:51:29 -08:00
```bash
brew install jandedobbeleer/oh-my-posh/oh-my-posh
2021-11-25 23:51:29 -08:00
```
This installs two things:
- `oh-my-posh` - Executable, added to `$(brew --prefix)/bin`
- `themes` - The latest Oh My Posh [themes][themes]
2021-11-25 23:51:29 -08:00
2022-08-10 06:15:16 -07:00
If you want to use a predefined theme, you can find them in `$(brew --prefix oh-my-posh)/themes`, referencing them as such
will always keep them compatible when updating Oh My Posh.
2021-11-25 23:51:29 -08:00
## Updating
2021-11-25 23:51:29 -08:00
```bash
brew update && brew upgrade oh-my-posh
2021-11-25 23:51:29 -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
[themes]: https://ohmyposh.dev/docs/themes
[strange]: https://github.com/JanDeDobbeleer/oh-my-posh/issues/1287