- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| theme | ||
| install_a51b.sh | ||
| prompt-image.png | ||
| README.md | ||
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.
🚀 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:
-
Open your shell profile file using an editor:
- For Bash:
nano ~/.bashrc - For Zsh:
nano ~/.zshrc
- For Bash:
-
Locate the line containing the
OMP_COLORvariable and change the HEX code value:export OMP_COLOR="#00c853" # <-- Swap this with your new desired color -
Save the file and reload your terminal session instantly by typing:
source ~/.bashrc # or source ~/.zshrcThe OS logo background color and text contrast calculation will update automatically!
