I recently came across https://ohmyposh.dev/ and I think I'm in love.
It's a bit similar to `oh-my-zsh` in that it's a dynamic prompt theme engine but (despite the name) `oh-my-posh` works for *any* shell, on any system. I regularly bounce between zsh and pwsh on both Linux and Windows (native PowerShell as well as zsh/pwsh in WSL), and it's awesome having the same themed prompt wherever I go.
I can even set the local shell to pull the config from Github for ultimate portability!
@john_b Woah, that looks awesome.
I set up a customized theme with:
- transient prompt (replaces the prompts on previously-executed commands with ';' for safe copy-pasting
- collapsed PWD path
- git status
- active Terraform workspace
- active kubectl context
- indicator for remote sessions
- indicator for non-zero exit codes
I'm having too much fun!
https://raw.githubusercontent.com/jbowdre/dotfiles/main/oh-my-posh/vpotato.minimal.omp.json