Skip to content

Shell Enhancement

gsjonio edited this page Jul 14, 2026 · 1 revision

Shell Enhancement

The shell group turns PowerShell 7+ into a modern terminal. Full reference: docs/SHELL.md.

sudo .\setup.ps1 -Group shell

What it sets up

  • Oh My Posh with the half-life theme (game-inspired prompt with git status)
  • Fira Code font (programming ligatures), auto-configured in Windows Terminal
  • PSReadLine — history-based prediction, tab-completion menu, reverse search
  • Bash-like aliasesll, la, grep

PowerShell profile

The group writes (or appends to) your $PROFILE. It is idempotent: if the winforge block is already present, it is left untouched. Key bindings added:

  • Ctrl+R / Ctrl+S — reverse / forward history search
  • Ctrl+A / Ctrl+E — beginning / end of line
  • Ctrl+← / Ctrl+→ — jump word

Changing the theme

Oh My Posh ships 100+ themes (dracula, nord, catppuccin, tokyo, …). Download one and point the config at it:

oh-my-posh init pwsh --config "$env:APPDATA\oh-my-posh\config.json" | Invoke-Expression

Browse themes: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes

Requirements

  • PowerShell 7+ (the profile guards features behind $PSVersionTable.PSVersion.Major -ge 7)
  • A Nerd Font (Fira Code NF) for prompt glyphs — installed by this group

Clone this wiki locally