oh-my-posh-setup
Skill0 starsChanged 4 months agoMITView on GitHub
Set up or troubleshoot a modern Windows terminal environment based on Windows Terminal, PowerShell 7, and oh-my-posh. Use when asked to install, configure, verify, or repair oh-my-posh on Windows, especially for users coming from zsh or oh-my-zsh who want a similar prompt experience.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-proxySkill
- executor-plansSkill
- executor-reviewsSkill
- git-conditional-identitiesSkill
- git-conventionsSkill
- scheduling-codex-window-startsSkill
- skill-comparisonSkill
- visualizing-leetcode-solutionsSkill
- windows-fe-dev-setupSkill
- ask-orchardSkill
- decide-before-doingSkill
- plan-to-docsSkill
- review-to-docsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Run scripts/check-state.ps1 first when you need a quick inventory of the current machine state.
- Distinctive: line 27
Use it to confirm:
- Very specific: line 35
Prefer winget for core packages:
- Very specific: line 59
Use scripts/update-profile.ps1 to add or refresh a managed oh-my-posh block in the user's PowerShell profile without wiping unrelated …
- Very specific: line 60
Use scripts/update-windows-terminal.ps1 to ensure a PowerShell 7 profile exists, make it the default profile, and apply the desired font.
- Distinctive: line 62
Read the script before changing behavior, then run it with explicit parameters when needed.
- Very specific: line 73
If the user expects a terminal app to change automatically, explain that the shell (pwsh) and the terminal host (Windows Terminal, editor …
- Very specific: line 77
If a command still cannot be found right after install, assume session PATH or app alias refresh is the first suspect.
- Very specific: line 78
If oh-my-posh font install opens a UI or hangs, use --headless --plain.
- Very specific: line 79
If PSReadLine prediction settings fail in non-interactive terminals, keep them wrapped in try/catch.
- Very specific: line 80
If Windows Terminal JSON edits behave inconsistently, rerun under pwsh instead of Windows PowerShell 5.1.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Oh My Posh Setup
Standardize the environment around Windows Terminal + PowerShell 7 + oh-my-posh. Keep the conversation focused on the user's target experience, then use the bundled scripts for deterministic checks and file edits.
Target State
Aim for this result unless the user asks for a different setup:
Windows Terminalis installed and usable.PowerShell 7is installed and available aspwsh.oh-my-poshis installed and callable.- A Nerd Font such as
MesloLGM Nerd Font Monois installed. - PowerShell profile initializes
oh-my-poshsafely. Windows Terminaldefaults toPowerShell 7and uses the Nerd Font.
Workflow
1. Inspect before changing anything
Run scripts/check-state.ps1 first when you need a quick inventory of the current machine state.
Use it to confirm:
- whether
wt,pwsh,oh-my-posh, andwingetresolve - where the PowerShell profile lives
- whether Windows Terminal settings are present
2. Install only what is missing
Prefer winget for core packages:
winget install --id Microsoft.PowerShell -e --accept-package-agreements --accept-source-agreements
winget install --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements
winget install --id JanDeDobbeleer.OhMyPosh -e --accept-package-agreements --accept-source-agreementsInstall a Nerd Font with:
oh-my-posh font install meslo --headless --plainInstall optional modules only when the user wants the enhanced experience:
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module PSReadLine -Scope CurrentUser -Force -AllowClobber
Install-Module Terminal-Icons -Scope CurrentUser -Force -AllowClobber3. Use scripts for deterministic config edits
- Use
scripts/update-profile.ps1to add or refresh a managedoh-my-poshblock in the user's PowerShell profile without wiping unrelated customizations. - Use
scripts/update-windows-terminal.ps1to ensure aPowerShell 7profile exists, make it the default profile, and apply the desired font.
Read the script before changing behavior, then run it with explicit parameters when needed.
4. Verify from a fresh pwsh session
Check at least:
pwsh -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion.ToString()'
pwsh -NoLogo -Command 'Get-Command oh-my-posh'If the user expects a terminal app to change automatically, explain that the shell (pwsh) and the terminal host (Windows Terminal, editor terminal, other embedded terminals) are separate layers.
Troubleshooting
- If a command still cannot be found right after install, assume session
PATHor app alias refresh is the first suspect. - If
oh-my-posh font installopens a UI or hangs, use--headless --plain. - If
PSReadLineprediction settings fail in non-interactive terminals, keep them wrapped intry/catch. - If Windows Terminal JSON edits behave inconsistently, rerun under
pwshinstead of Windows PowerShell 5.1.
Communication Notes
- Explain terminal app vs shell clearly for users coming from
zshoroh-my-zsh. - Recommend
PowerShell 7 + oh-my-poshfor native Windows workflows. - Mention
WSL + zshonly when the user wants Unix-first behavior. - Be explicit about which changes affect the machine, the shell profile, or one specific terminal app.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

