feat(scoop): add POSH_THEMES_PATH environment variable

This commit is contained in:
Samuel D. Leslie 2022-05-16 15:00:35 +10:00 committed by GitHub
parent bc9f884e9c
commit 7bb927d55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,9 @@
} }
}, },
"env_add_path": "bin", "env_add_path": "bin",
"env_set": {
"POSH_THEMES_PATH": "$dir\\themes"
},
"checkver": { "checkver": {
"github": "https://github.com/JanDeDobbeleer/oh-my-posh" "github": "https://github.com/JanDeDobbeleer/oh-my-posh"
}, },

View file

@ -73,7 +73,7 @@ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" |
Replace `jandedobbeleer.omp.json` with the theme you use. Replace `jandedobbeleer.omp.json` with the theme you use.
:::caution :::caution
Only winget can add the environment variable `POSH_THEMES_PATH` automatically. For Homebrew, use Only winget and scoop add the environment variable `POSH_THEMES_PATH` automatically. For Homebrew, use
`$(brew --prefix oh-my-posh)/themes/jandedobbeleer.omp.json`. `$(brew --prefix oh-my-posh)/themes/jandedobbeleer.omp.json`.
::: :::