Theme configuration for Oh My Posh
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-20 00:46:18 +00:00
theme fix git icons 2026-07-18 20:14:29 +00:00
install_a51b.sh Create the .bashrc file if not present 2026-07-20 00:46:18 +00:00
prompt-image.png add prompt image 2026-07-19 23:11:22 +00:00
README.md Update README.md 2026-07-20 00:28:21 +00:00

Oh My Posh - A51B Theme

A modern, high-utility, single-line Powerline theme for Oh My Posh (Version 4). This setup allows you to maintain one single centralized configuration file across all your target machines, while dynamically differentiating the terminal palette on each specific host using a single local environment variable.

prompt image

🚀 Key Features

  • Single-Line Layout: Highly compact design to maximize terminal workspace.
  • Flat Left Edge: Crisp rectangular start on the left with seamless Powerline junctions.
  • Dynamic Theme Colors: Define a single color variable on the host; the theme calculates matching shades.
  • Automated Matching Shades: The OS logo background automatically matches your custom hostname hue, but 30% darker.
  • Smart Contrast: Auto-switches text color between white and black depending on background brightness.
  • Visual Enhancements: Dedicated user status icon (turns bold fire-red if root).
  • Clean Git Tracking: Clean high-visibility branch icon () alongside modification flags (*).
  • Contextual Segment Rendering: Language modules (Python, Node, Go, Rust) appear only when inside active project folders.
  • Native Python Venv Tracking: Clean, native tracking for activated virtual environments (.venv).

🛠️ Automated Installation

During execution, the script will ask you to type a custom HEX color code to assign to this specific machine. Run this command on your host:

curl -sL https://git.area51bit.com/kamzata/oh-my-posh/raw/branch/main/install_a51b.sh | bash

(Append sudo bash instead if you explicitly want to enforce global /bin system folder storage)


🎨 How to Change the Color Later

The configuration block appended to your shell runner file is completely independent of the remote Git theme file. To change a machine's theme color at any time, follow these steps:

  1. Open your shell profile file using an editor:

    • For Bash: nano ~/.bashrc
    • For Zsh: nano ~/.zshrc
  2. Locate the line containing the OMP_COLOR variable and change the HEX code value:

    export OMP_COLOR="#00c853" # <-- Swap this with your new desired color
    
  3. Save the file and reload your terminal session instantly by typing:

    source ~/.bashrc   # or source ~/.zshrc
    

    The OS logo background color and text contrast calculation will update automatically!