The themes here might not be the fastest or well optimised. The purposes here are more aesthetic than functional.
To learn about how oh-my-posh is installed in different environments, head on over to Oh My Posh. Once installed you can edit the .profile or .bashrc or other similar files to apply the theme to your shell. I primarily work with .profile files, and I work on Windows so only these shells have been covered but you may extend this to Linux and Mac ofcourse.
Note: While you can point your theme to github url, it is better to downloda the .omp.json files from the repo as raw content and then point to the downloaded file, as that will ensure the terminal doesnt have to pull the theme from the web every time.
- Edit the .profile file:
micro ~/.profile
## OR
nano ~/.profile- Add this line at the very end:
eval "$(oh-my-posh init bash --config ~/oh-my-posh/.custom.omp.json)"
## The path can be anything, as long as it is accessible. It should point to an omp.json file.- Save changes and exit. Then reload the bash profile:
source ~/.profile- Edit the $PROFILE file:
micro $PROFILE
## OR
notepad $PROFILE- Add this line at the very start:
oh-my-posh init pwsh --eval --config '~/oh-my-posh/.custom.omp.json' | Invoke-Expression
## The path can be anything, as long as it is accessible. It should point to an omp.json file.- Save changes and exit. Then reload the pwsh profile:
. $PROFILE- Just run this command
clink set ohmyposh.theme "~\oh-my-posh\.custom.omp.json"
## The path can be anything, as long as it is accessible. It should point to an omp.json file. (You need to have clink and oh-my-posh set up of course)- To see the changes you may have to close the window and reopen it, there is no real way to reload cmd otherwise.
If the above themes don't cut it for you, you can easily generate your own!
Refer to THEME.md for tips and instructions on how to leverage master.json and build.py to add new colorways, change brand colors, or seamlessly inject new segments into your prompt.





