agentleFS
OrchardxyzOrchardxyz/agent-skills/skills/deprecated/oh-my-posh-setup/SKILL.md

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.

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
  1. Very specific:

    Run scripts/check-state.ps1 first when you need a quick inventory of the current machine state.

    line 25
  2. Distinctive:

    Use it to confirm:

    line 27
  3. Very specific:

    Prefer winget for core packages:

    line 35
  4. Very specific:

    Use scripts/update-profile.ps1 to add or refresh a managed oh-my-posh block in the user's PowerShell profile without wiping unrelated …

    line 59
  5. Very specific:

    Use scripts/update-windows-terminal.ps1 to ensure a PowerShell 7 profile exists, make it the default profile, and apply the desired font.

    line 60
  6. Distinctive:

    Read the script before changing behavior, then run it with explicit parameters when needed.

    line 62
  7. Very specific:

    If the user expects a terminal app to change automatically, explain that the shell (pwsh) and the terminal host (Windows Terminal, editor …

    line 73
  8. Very specific:

    If a command still cannot be found right after install, assume session PATH or app alias refresh is the first suspect.

    line 77
  9. Very specific:

    If oh-my-posh font install opens a UI or hangs, use --headless --plain.

    line 78
  10. Very specific:

    If PSReadLine prediction settings fail in non-interactive terminals, keep them wrapped in try/catch.

    line 79
  11. Very specific:

    If Windows Terminal JSON edits behave inconsistently, rerun under pwsh instead of Windows PowerShell 5.1.

    line 80

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 Terminal is installed and usable.
  • PowerShell 7 is installed and available as pwsh.
  • oh-my-posh is installed and callable.
  • A Nerd Font such as MesloLGM Nerd Font Mono is installed.
  • PowerShell profile initializes oh-my-posh safely.
  • Windows Terminal defaults to PowerShell 7 and 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, and winget resolve
  • 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-agreements

Install a Nerd Font with:

oh-my-posh font install meslo --headless --plain

Install 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 -AllowClobber

3. Use scripts for deterministic config edits

  • Use scripts/update-profile.ps1 to add or refresh a managed oh-my-posh block in the user's PowerShell profile without wiping unrelated customizations.
  • Use scripts/update-windows-terminal.ps1 to ensure a PowerShell 7 profile 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 PATH or app alias refresh is the first suspect.
  • If oh-my-posh font install opens a UI or hangs, use --headless --plain.
  • If PSReadLine prediction settings fail in non-interactive terminals, keep them wrapped in try/catch.
  • If Windows Terminal JSON edits behave inconsistently, rerun under pwsh instead of Windows PowerShell 5.1.

Communication Notes

  • Explain terminal app vs shell clearly for users coming from zsh or oh-my-zsh.
  • Recommend PowerShell 7 + oh-my-posh for native Windows workflows.
  • Mention WSL + zsh only when the user wants Unix-first behavior.
  • Be explicit about which changes affect the machine, the shell profile, or one specific terminal app.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.