A custom Oh My Posh theme with a retro color scheme.
- Clean, minimal design with power icon indicator
- Current time display
- Username and path information
- Git branch display
- Execution time indicator for slow commands
- Error commands indicator
Before using this theme, you need to have Oh My Posh installed on your system.
For Windows (PowerShell):
winget install JanDeDobbeleer.OhMyPosh -s wingetFor Windows (via Scoop):
scoop install oh-my-poshFor Windows (via Chocolatey):
choco install oh-my-poshFor Linux/macOS:
# Using Homebrew (macOS/Linux)
brew install oh-my-posh
# Or using the install script
curl -s https://ohmyposh.dev/install.sh | bash -s- Clone this repository or download the
phosphor.omp.jsonfile - Save the file to a location on your system (e.g.,
C:\Users\YourUsername\Documents\phosphor.omp.json)
- Open PowerShell
- Check if you have a PowerShell profile by running:
Test-Path $PROFILE
- If it returns
False, create a profile:New-Item -Path $PROFILE -Type File -Force
- Open your profile in a text editor:
Or use your preferred editor:
notepad $PROFILEcode $PROFILE
Add the following lines to your PowerShell profile (replace the path with your actual theme file location):
oh-my-posh init pwsh --config "C:\path\to\phosphor.omp.json" | Invoke-ExpressionExample:
oh-my-posh init pwsh --config "C:\Users\YourUsername\Documents\phosphor.omp.json" | Invoke-ExpressionOh My Posh uses special characters and icons. For the best experience, install a Nerd Font:
- Download a Nerd Font from nerdfonts.com
- Recommended: MesloLGS NF, FiraCode Nerd Font, or Cascadia Code
- Install the font by:
- Extracting the downloaded zip file
- Right-clicking on the font files (.ttf)
- Selecting "Install" for each font
- Configure your terminal to use the Nerd Font:
- Windows Terminal: Settings → Appearance → Font → Select your Nerd Font
- PowerShell: Right-click title bar → Properties → Font → Select your Nerd Font
After saving your profile, reload it:
. $PROFILEOr simply close and reopen your PowerShell window.
After completing the installation, you should see:
- A power icon (⚡) at the beginning of your prompt
- Current time in brackets
- Your username
- Current directory path
- Git branch name (if in a git repository)
- A prompt symbol (❯) at the end
- Verify the path to
phosphor.omp.jsonis correct in your profile - Check that the file exists at the specified location
- Ensure Oh My Posh is installed:
oh-my-posh --version
- Make sure you've installed a Nerd Font
- Configure your terminal to use the Nerd Font
- Restart your terminal after changing the font
- Check your execution policy:
Get-ExecutionPolicy - If it's
Restricted, set it toRemoteSigned:Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
You can customize the theme by editing phosphor.omp.json:
- Change colors in the
palettesection - Modify segments in the
blockssection - Adjust templates and properties for each segment
After making changes, reload your profile: . $PROFILE
Add to your ~/.bashrc:
eval "$(oh-my-posh init bash --config /path/to/phosphor.omp.json)"Add to your ~/.zshrc:
eval "$(oh-my-posh init zsh --config /path/to/phosphor.omp.json)"Add to your ~/.config/fish/config.fish:
oh-my-posh init fish --config /path/to/phosphor.omp.json | sourceThis theme is provided as-is for personal use.
