This repo is a place where I share and store my config files for oh-my-posh.
Oh-my-posh repo: https://github.com/JanDeDobbeleer/oh-my-posh
Website: https://ohmyposh.dev/
- winget install JanDeDobbeleer.OhMyPosh -s winget
- winget upgrade JanDeDobbeleer.OhMyPosh -s winget
- Installing a nerd font: https://www.nerdfonts.com/font-downloads
- New-Item -Path $PROFILE -Type File -Force
- notepad $PROFILE
- Load the default theme: oh-my-posh init pwsh | Invoke-Expression
- Load profile in Powershell: . $PROFILE
- Load custom theme: oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\themename.omp.json" | Invoke-Expression
- Load the profile again: . $PROFILE
-
curl -s https://ohmyposh.dev/install.sh | bash -s
-
Install a Nerd font: oh-my-posh font install FONT
Nerd fonts: https://www.nerdfonts.com/font-downloads
-
Add the following line to .bashrc to load the default theme: eval "$(oh-my-posh init bash)"
-
Load the default profile: exec bash
-
Replace the last line to .bashrc to load a custom theme:
eval "$(oh-my-posh init bash --config /mnt/c/Users/**WINDOWSUSERNAME**/Appdata/local/Programs/oh-my-posh/themes/themename.omp.json)"
-
Load the custom profile: exec bash