mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
36 lines
976 B
Plaintext
36 lines
976 B
Plaintext
|
### Installation
|
||
|
|
||
|
A [Homebrew][brew] formula is available for easy installation.
|
||
|
|
||
|
```bash
|
||
|
brew tap jandedobbeleer/oh-my-posh
|
||
|
brew install oh-my-posh
|
||
|
```
|
||
|
|
||
|
This installs two things:
|
||
|
|
||
|
- `oh-my-posh` - Executable, added to `/usr/local/bin`
|
||
|
- `themes` - The latest Oh My Posh themes
|
||
|
|
||
|
If you want to use a standard theme, you can find them in `$(brew --prefix oh-my-posh)/themes`, referencing them as such
|
||
|
will always keep them compatible with the binary when updating Oh My Posh.
|
||
|
|
||
|
#### Preview the themes
|
||
|
|
||
|
```bash
|
||
|
for file in $(brew --prefix oh-my-posh)/themes/*.omp.json; do echo "$file\n"; oh-my-posh --config $file --shell universal; echo "\n"; done;
|
||
|
```
|
||
|
|
||
|
#### Update
|
||
|
|
||
|
```bash
|
||
|
brew upgrade oh-my-posh
|
||
|
```
|
||
|
|
||
|
### Replace your existing prompt
|
||
|
|
||
|
The guides below assume you copied the theme called `jandedobbeleer.omp.json` to your user's `$HOME` folder.
|
||
|
When using brew, you can find this one at `$(brew --prefix oh-my-posh)/themes/jandedobbeleer.omp.json`.
|
||
|
|
||
|
[brew]: https://brew.sh
|