PowerShell 7 terminal environment for Windows. Configures Starship prompt, PSReadLine predictive completion, Zoxide directory navigation, Eza file listing, FZF history search, Delta git diffs, FD, and Ripgrep.
Open PowerShell as Administrator, then run:
irm https://raw.githubusercontent.com/Andndre/nirmana-shell/main/setup.ps1 | iexgit clone https://github.com/Andndre/nirmana-shell.git
cd nirmana-shell
.\setup.ps1The script performs the following tasks:
- Installs required tools via WinGet (
pwsh,git,starship,zoxide,eza,fzf,delta,fd,rg, and Cascadia Code Nerd Font). - Configures Git to use
deltaas the default pager. - Sets up
~/.nirmana-shelland installs the PowerShell 7 profile (preserving pre-existing profiles in.orig). - Sets the default Starship configuration.
- Disables the console bell on backspace.
- Sets PowerShell 7 as the default profile in Windows Terminal with synchronized color schemes.
Icons used by Starship and Eza require a patched Nerd Font. setup.ps1 automatically installs Cascadia Code Nerd Font via WinGet.
If configuring manually or verifying:
- Ensure Cascadia Code Nerd Font is installed (or run
nirmana doctor --fix). - In Windows Terminal: Go to Settings (Ctrl + ,) > Defaults > Appearance > Font face > Select
CaskaydiaCove NF.
| Feature | Shortcut / Command | Description |
|---|---|---|
| Inline Autocomplete | Gray text | History-based prediction |
| Accept Suggestion | Right Arrow / End |
Accept full prediction |
| Accept Word | Ctrl + F |
Accept next word of prediction |
| Toggle View | F2 |
Switch between inline and list prediction (persisted across sessions) |
| History Search | Ctrl + R |
Fullscreen fuzzy history search using fzf |
| Menu Completion | Tab |
Interactive completion menu |
| Directory Jump | z <folder> |
Jump to previously visited directory |
| Interactive Jump | zi |
Select directory interactively via fzf |
| Add Directory | za [folder] |
Add directory to zoxide (default: current folder) |
| File Listing | ls, ll, la, lt |
Directory listing using eza |
| Git Diffs | git diff, git show |
Syntax-highlighted diffs using delta |
| File Search | fd <query> |
Fast file search |
| Text Search | rg <query> |
Fast recursive regex text search |
Tip
User Custom Extensions: Place personal functions, tokens, and aliases in ~/.config/nirmana/custom.ps1. This file is loaded automatically by your profile and is never overwritten during Nirmana-Shell updates.
Persistent Preferences: Theme choice and F2 prediction view style are saved in ~/.config/nirmana/settings.json and survive all updates.
The nirmana-shell command (alias: nirmana) is registered globally:
| Command | Description |
|---|---|
nirmana theme |
Open interactive theme switcher with top prompt preview and rounded borders |
nirmana theme <name> |
Apply a specific theme (supports Tab completion) |
nirmana import-theme <url/file> [name] |
Import & transpile Oh My Posh theme JSON to Starship TOML |
nirmana version |
Display installed version, commit hash, and PowerShell environment |
nirmana doctor |
Verify PATH and health of all CLI tools and Nerd Font status |
nirmana doctor --fix |
Automatically install missing CLI dependencies and fonts via WinGet |
nirmana benchmark |
Profile sub-second startup latency across profile components |
nirmana update |
Pull latest updates from GitHub |
nirmana reload |
Reload the active PowerShell profile |
nirmana uninstall |
Interactively remove Nirmana and restore original profile backup |
Supports 17 curated custom themes, 109 ported Oh My Posh community themes, and 10 official Starship presets (total: 136 themes). All themes are fully integrated with the interactive FZF switcher (nirmana theme).
Custom Themes Gallery (18 Curated Themes)
Ported Oh My Posh Themes (109 Themes - Click to Expand)
Official Starship Presets (10 Presets)
Usage example:
nirmana theme
nirmana theme takuya
nirmana theme bubbles
nirmana theme robbyrussell
nirmana theme spaceship
nirmana theme catppuccin-mochaNirmana-Shell includes a built-in transpiler engine (convert-omp.py) that translates Oh My Posh JSON themes (*.omp.json) into native, high-performance Starship configurations (*.toml).
- Zero Runtime Overhead: Enjoy community theme aesthetics on Starship's compiled Rust engine (<10ms latency), eliminating the 50ms - 150ms shell startup latency of Go-based prompt engines on Windows.
- Layout Normalization: Adapts arbitrary block sequences into Nirmana's standard multi-line architecture with dynamic
$fillright-alignment for execution duration and hardware metrics. - Color & Powerline Preservation: Accurately maps hex palettes, palette lookups (
p:color), diamond capsules (/), and powerline chevrons (/). - Automated Visual Previews: Automatically generates both ANSI TUI preview cards (
.previews/) and high-resolution rasterized PNG cards (assets/previews/) upon import.
Import any Oh My Posh theme using the nirmana import-theme command:
# 1. Import by shorthand name directly from the official Oh My Posh repository
nirmana import-theme quick-term
# 2. Import from a custom remote URL (e.g. GitHub raw) with an optional custom name
nirmana import-theme https://raw.githubusercontent.com/.../custom.omp.json my-theme
# 3. Import from a local file
nirmana import-theme .\my-theme.omp.jsonAlternatively, run the transpiler script directly via uv:
uv run python scripts/convert-omp.py quick-term --output themes/quick-term.tomlRegenerate the maintained Oh My Posh collection directly from the upstream repository. This rewrites only the themes listed in scripts/omp-themes.txt; curated Nirmana themes remain unchanged.
uv run --with rich --with resvg-py python scripts/convert-omp.py --upstream --output themesNirmana-Shell selects Starship as its core prompt engine for distinct architectural advantages:
- High Performance (Rust-Native): Starship is compiled to native machine code with zero runtime overhead. Prompt latency consistently remains under 10ms, eliminating terminal input stutter even in large repositories and complex directories.
- Universal Portability: A single
starship.tomlconfiguration file works identically across PowerShell 7, Bash, Zsh, Fish, and NuShell on Windows, Linux, and macOS. - Declarative Configuration: Uses clean TOML syntax instead of complex shell script evaluation or deeply nested JSON/YAML structures.
- Intelligent Module Caching: Modules for Git status, language runtimes, and command durations execute asynchronously and cache results, preventing terminal freezes during network or slow disk operations.
How Nirmana-Shell compares against other popular Windows terminal configurations and prompt tools:
| Feature / Aspect | Nirmana-Shell | Chris Titus Tech (win-dotfiles) |
Oh My Posh (oh-my-posh) |
Standalone Dotfiles |
|---|---|---|---|---|
| Prompt Engine | Starship (Rust) | Starship (Rust) | Oh My Posh (Go) | Varies (Starship / Custom) |
| Primary Scope | Full Terminal Environment & Theme Suite | Windows Tweaks & General Dotfiles | Prompt Engine Only | Personal Configs |
| Installation | 1-Line Remote (irm ... | iex) |
PowerShell / Batch Script | Package Manager (winget) |
Manual Git Clone & Copy |
| Curated Themes | 18 Curated + 108 OMP + 10 Presets | 1 Default Theme | 100+ Community Themes | 1 Custom Theme |
| Interactive TUI Switcher | Built-in (nirmana theme via FZF) |
None (Static Config) | CLI / Manual Config | None |
| Terminal Scheme Sync | Automatic (Windows Terminal JSON) | Partial | Manual | Manual |
| CLI Toolchain Integration | Complete (eza, fzf, zoxide, delta, fd) |
Focused (zoxide, fzf) |
None (Prompt only) | Varies |
| Version & Diagnostics | Built-in (nirmana version & doctor) |
Basic Script Checks | oh-my-posh version |
None |
- Versus Chris Titus Tech (
win-dotfiles): Whilewin-dotfilesoffers a proven system-wide setup tailored to general Windows utilities with a single static Starship theme, Nirmana-Shell focuses exclusively on the terminal developer experience: providing an interactive 27-theme TUI switcher, right-aligned$filllayouts, automated visual galleries, and full Delta git pager integration. - Versus Oh My Posh: Oh My Posh is an outstanding prompt engine with a vast collection of community themes. However, Oh My Posh is solely a prompt engine. Nirmana-Shell integrates Starship into a cohesive terminal ecosystem that configures PSReadLine, predictive completions, syntax-highlighted git diffs, directory jumping, and automatic Windows Terminal color scheme synchronization.
- Versus Standalone Dotfiles / Community Presets: Standalone dotfiles require manual package installations, manual font configuration, and editing TOML files by hand. Nirmana-Shell packages everything into an automated, idempotent setup with self-healing profile reloaders and versioned health checks.
nirmana-shell/
├── LICENSE # MIT license and acknowledgements
├── README.md # Documentation
├── VERSION # Single source of truth for version number
├── CHANGELOG.md # Standard Keep a Changelog documentation
├── setup.ps1 # Automated installer
├── switch-theme.ps1 # Theme switcher with real-time preview
├── preview.cmd # Fast preview helper for FZF TUI
├── .previews/ # Pre-rendered theme preview cards (ANSI text)
├── assets/
│ └── previews/ # Pre-rendered PNG cards for documentation
├── configs/
│ └── Microsoft.PowerShell_profile.ps1 # PowerShell 7 profile
├── scripts/
│ └── generate-previews.py # Tool to render previews to PNG
└── themes/ # 17 custom and adapted Starship themes (*.toml)
MIT License. See LICENSE for details.
Includes integrations with:
- Starship (ISC License): https://starship.rs
- Zoxide (MIT License): https://github.com/ajeetdsouza/zoxide
- Eza (EUPL-1.2 License): https://github.com/eza-community/eza
- FZF (MIT License): https://github.com/junegunn/fzf
- Delta (MIT License): https://github.com/dandavison/delta
- FD (MIT/Apache-2.0 License): https://github.com/sharkdp/fd
- PSReadLine (MIT License): https://github.com/PowerShell/PSReadLine





































































































































