JanDeDobbeleer / oh-my-posh2

A prompt theming engine for Powershell
MIT License
5.19k stars 284 forks source link

Noob help: Customize suffix based on environment variable #268

Closed drmikecrowe closed 4 years ago

drmikecrowe commented 4 years ago

Sorry if this is obvious and I'm missing it, but I'd like to add a new section to the prompt based on my current AWS_PROFILE set in the environment.

If $Env:AWS_PROFILE="dev", something like (green)dev If $Env:AWS_PROFILE="tst", something like (yellow)TST If $Env:AWS_PROFILE="prd", something like (red)PRD

Is this possible? Where would I start?

JanDeDobbeleer commented 4 years ago

Perfectly possible by creating your own theme. Feel free to browse through Themes/*, select the one you like and add it where you want. I can always help out if you tell me which theme you'd like to use and where you'd like to add that specific part.