Skip to content

About

A modular, high-performance PowerShell 7 environment for Windows

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Warph Terminal Logo

Warph Terminal

A modular PowerShell 7 environment for Windows with fast startup, native CLI wrappers, and clean themes.

PowerShell Platform License


Overview

Warph Terminal organizes your PowerShell profile into small, auto-loaded modules instead of one giant script:

  • Drop any .ps1 into src/modules/ and it loads automatically on shell startup.
  • Startup latency stays under 90ms by avoiding bloated loader routines.
  • Paths resolve dynamically via .NET APIs, keeping your setup portable across machines.
  • Wrappers and native fallbacks for popular CLI tools (eza, bat, fd, bottom, ripgrep).
  • Media shortcuts for yt-dlp and one-line FFmpeg audio/video conversions.

Prerequisites

Before installing, ensure you have:

  1. PowerShell 7.4+ (pwsh.exe)
  2. Windows Terminal (Required to render 24-bit ANSI colors and font glyphs)
  3. A Nerd Font (Optional) — e.g. CaskaydiaCove NF or JetBrainsMono NF for prompt glyphs. Without it, standard system fonts (Cascadia Mono / Consolas) work without errors.

Tip

Running .\setup.ps1 checks for missing tools and offers to install Windows Terminal or PowerShell 7 automatically via winget. Font configuration can be launched anytime with .\setup.ps1 -SetFont.


Installation

Option 1: Quick Install (Recommended)

Run this one-liner in PowerShell 7 to download and launch the installer directly:

irm da.gd/warph | iex

For the latest development preview (develop branch):

irm da.gd/warph_dev | iex

Option 2: Release ZIP (One-Click)

  1. Download the latest warph-terminal.zip from Releases.
  2. Extract the archive.
  3. Double-click install.cmd to run the setup automatically.

Option 3: Git Clone

git clone https://github.com/Wpnnt/warph-terminal.git
cd warph-terminal
.\setup.ps1

Setup Modes

When prompted, choose your preferred target:

Option Mode Details
[1] Windows Terminal Profile Creates a dedicated "Warph Terminal" profile entry in Windows Terminal.
[2] Global PowerShell Profile Adds a non-destructive loader to your current $PROFILE.
[3] Both (Recommended) Configures both targets.

Helper Scripts

.\setup.ps1                  # Interactive management menu (Install, Font, Prereqs, Repair, etc.)
.\setup.ps1 -CheckPrereqs    # Verify and auto-install Windows Terminal, fonts, and tools
.\setup.ps1 -SetFont         # Interactive Nerd Font selector & installer
.\setup.ps1 -Font "<name>"   # Set specific font directly (e.g. -Font "0xProto Nerd Font")
.\scripts\install.ps1        # Direct non-interactive installation (supports -Font "<name>")
.\setup.ps1 -Repair          # Refresh scripts and themes in ~/.warph-terminal
.\scripts\uninstall.ps1      # Clean removal and profile restoration

Toolchain & Dependencies

Core (Installed via setup.ps1)

Dependency Purpose
oh-my-posh Prompt engine (bundled with the custom Warph logo theme)
zoxide Smarter cd command with directory frecency
Terminal-Icons File and folder icons in directory listings
yt-dlp Video and audio downloader (yt, yti, yta, vyt, vyta)
deno JavaScript runtime required by yt-dlp extractors
ffmpeg Audio/video conversion and stream muxing

Optional Rust CLI Tools (via install-rust-tools.ps1)

Run .\scripts\install-rust-tools.ps1 to install modern CLI alternatives via winget:

Tool Command Description
eza eza (shortcuts: la, ll) Modern ls alternative with icons, file metadata, and Git status
bat bat Syntax-highlighted file viewer with git integration
fd fd (shortcut: ff) Fast recursive file search
bottom btm Graphical system and process monitor
dust dust Visual and interactive disk usage analyzer
broot broot Interactive directory tree navigator
procs procs Modern process viewer and resource monitor
tokei tokei Codebase line and language counter
hyperfine hyperfine CLI command benchmarking tool
gitui gitui Interactive terminal UI for Git
yazi yazi Lightning-fast terminal file manager
xh xh Modern, friendly HTTP client for REST APIs
atuin atuin Shell history search and sync

Command Reference

Files & Navigation

Command Description
touch <file> Create an empty file or update its timestamp
mkcd <dir> Create a directory and immediately enter it
trash <path> Move a file or folder to the Windows Recycle Bin
cleantemp Remove temporary files in %TEMP% and report reclaimed space

CLI Utilities

Commands and wrappers for tools installed via scripts/install-rust-tools.ps1:

Command Tool Description
eza [args] eza Directory listing with icons and Git status
bat <file> bat File viewer with syntax highlighting and line numbers
rg <pattern> ripgrep Ultra-fast recursive regex search
fd <pattern> fd Ultra-fast recursive file finder
dust dust Interactive, visual disk space usage
btm bottom Graphical CPU, memory, and process monitor
procs procs Modern process tree and status viewer
yazi yazi Lightning-fast terminal file manager
gitui gitui Interactive terminal-based Git GUI
tokei [path] tokei Count lines of code by programming language
hyperfine <cmd> hyperfine Command-line execution benchmarking
xh <args> xh Fast and friendly HTTP client for REST APIs
broot broot Interactive directory tree navigation

WSL Management

Command Description
wls List installed WSL distributions and running states
woff Shut down all active WSL instances (wsl --shutdown)
wk <distro> Terminate a specific WSL distribution
wsh <distro> Open a shell directly in a given distribution

Network & HTTP

Command Description
myip Query public IP address and geolocation, then copy to clipboard
flushdns Flush the Windows DNS resolver cache
testport <host> <port> Test TCP connectivity to a remote host and port
curltime <url> Measure latency breakdown for DNS, TLS, connect, and transfer
curlhead <url> Inspect HTTP response headers
curlssl <domain> Verify TLS certificate information and expiration
curlstatus <url> Return only the HTTP response status code
curlfollow <url> Trace HTTP redirect chains
cget <url> Send an HTTP GET request with formatted JSON output
cpost <url> <body> Send an HTTP POST request with a JSON payload
cput <url> <body> Send an HTTP PUT request with a JSON payload
cpatch <url> <body> Send an HTTP PATCH request with a JSON payload
cdel <url> Send an HTTP DELETE request
cdl <url> Download a file with progress indicators
cdlr <url> Download a file with automatic retries on failure

Clipboard & Utilities

Command Description
cb Pipe pipeline input directly into the Windows clipboard
b64 <text> Encode a string to Base64
b64d <text> Decode a Base64 string
uuid Generate a new UUID v4 and copy it to the clipboard
genpass [length] Generate a secure random password (default: 20 characters) and copy it

Developer Workflow

Command Description
nuke Clean build artifacts (node_modules, .next, dist, target) and reinstall dependencies
killport <port> Find and terminate the process listening on a specified TCP port
uptime Display Windows uptime since last boot

Media Downloader (yt-dlp)

yt and yta target the current working directory, while vyt and vyta save directly to your user Videos and Music folders.

Command Description
yti [url] Interactive terminal downloader with clipboard URL auto-detection
yt <url> Download best-quality video to current directory (opens TUI if run without args)
yta <url> Download best-quality audio as MP3 to current directory
vyt <url> Download best-quality video directly to user Videos directory
vyta <url> Download best-quality audio directly to user Music directory
ytls <url> List all available streams and formats for a given URL

Common parameters:

  • -q 720|1080|4k: Set maximum resolution limit.
  • -Type mp4|webm|mkv: Set preferred video container.
  • -Type mp3|flac|wav|m4a: Set preferred audio format.
  • -Out <path>: Custom destination directory.

Media Conversion (ffmpeg)

Convert media files directly in your terminal:

Command Description
tomp4 <file> Convert video to MP4 (H.264 / AAC)
tomp3 <file> Extract or convert audio to high-bitrate MP3
towav <file> Convert audio to 16-bit PCM WAV
togif <file> [fps] [width] Convert video segment to optimized GIF (default: 15 fps, 480px)
towebm <file> Convert video to WebM (VP9 / Opus)
toflac <file> Convert audio to lossless FLAC

System & Desktop

Command Description
ex [path] Open Windows File Explorer at the current or specified path
ag Launch Antigravity IDE in the current workspace
vlc <file> Play an audio or video file with VLC Media Player
colorpick Launch PowerToys Color Picker
winutil Launch Chris Titus Tech Windows Utility
pgrep <name> Search running processes by partial name
pkill <name> Gracefully stop running processes by name
k9 <name> Forcefully terminate processes by name (immediate kill)
c Clear the terminal screen (Clear-Host)
unzip <file> Extract a .zip archive
Show-Help Render an organized overview of all available commands

Keyboard Shortcuts (PSReadLine)

Keybinding Action
Up / Down History search matching the current input prefix
Tab Interactive autocompletion menu
Ctrl+D Delete character at cursor
Ctrl+W Delete previous word
Alt+D Delete next word
Ctrl+Left / Ctrl+Right Move cursor word by word
Ctrl+Z / Ctrl+Y Undo / Redo

Repository Architecture

warph-terminal/
├── assets/
│   ├── logo.svg                      # Official Warph Terminal vector logo
│   ├── logo.png                      # Windows Terminal profile raster icon
│   ├── banner.ansi                   # Pre-rendered 3D TrueColor half-block terminal banner
│   └── variants/                     # Curated collection of high-res theme logo variants
├── docs/
│   ├── architecture.md               # Runtime lifecycle, execution pipeline, and design constraints
│   ├── customization.md              # Adding modules, custom themes, and font configuration
│   └── changelog.md                  # Semantic Versioning release history
├── .github/
│   └── workflows/
│       └── audit.yml                 # CI workflow: syntax, functional tests, and 3-way sync
├── scripts/
│   ├── setup.ps1                     # Core setup engine (install, repair, uninstall)
│   ├── web-install.ps1               # Standalone web installer for irm | iex
│   ├── install.ps1                   # Non-interactive quick installation
│   ├── install-rust-tools.ps1        # Optional CLI tools installer
│   ├── uninstall.ps1                 # Clean profile restoration
│   └── audit-profile.ps1             # Local convention and synchronization auditor
├── src/
│   ├── Microsoft.PowerShell_profile.ps1 # Profile orchestrator and dynamic module loader
│   ├── config/                       # Core environment setup
│   │   ├── env.ps1                   # Tool path resolution and environment settings
│   │   ├── integrations.ps1          # Oh My Posh, Zoxide, and Terminal-Icons init
│   │   ├── keybinds.ps1              # PSReadLine colors and keybindings
│   │   └── theme.ps1                 # Theme loading logic
│   └── modules/                      # Domain-specific modules (auto-discovered)
│       ├── apps.ps1                  # Desktop shortcuts (ag, ex, vlc, colorpick)
│       ├── clipboard.ps1             # Clipboard and text tools (cb, b64, uuid, genpass)
│       ├── dev.ps1                   # Development helpers (nuke, killport)
│       ├── help.ps1                  # Show-Help documentation renderer
│       ├── media.ps1                 # Media downloader and FFmpeg converters
│       ├── network.ps1               # Network diagnostics and HTTP helpers
│       ├── system.ps1                # File and system management utilities
│       └── wsl.ps1                   # WSL helpers
├── tests/
│   ├── run-tests.ps1                 # Unified test suite runner
│   └── profile.tests.ps1             # AST and functional test assertions
├── themes/
│   └── warph.omp.json                # Default Oh My Posh theme (Warph Cyber Noir & Silver)
├── setup.ps1                         # Root interactive installer entrypoint
├── install.cmd                       # One-click Windows launcher for zip downloads
├── CONTRIBUTING.md                   # Branching workflow, commit guidelines, and PR rules
├── LICENSE                           # MIT License
├── README.md                         # Command reference and project documentation
└── .gitignore                        # Universal Git ignore rules

Customization

For comprehensive technical specifications, see the Architecture Overview, Customization Guide, and Release Changelog.

Adding a New Module

Warph Terminal automatically detects and sources any .ps1 file inside src/modules/:

  1. Create a new module file: src/modules/docker.ps1
    function dps  { docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" }
    function dimg { docker images }
    function dstop { docker stop $(docker ps -q) }
  2. Add entries to Show-Help in src/modules/help.ps1 and document them in README.md.
  3. Verify your additions with the test runner:
    pwsh -NoProfile -File tests/run-tests.ps1

Private & Machine-Specific Config (local.ps1)

For personal aliases, API tokens, or custom environments you do not want to track in Git:

  1. Create src/config/local.ps1 (or ~/.warph-terminal/config/local.ps1).
  2. Add your environment variables or private functions:
    $env:GITHUB_TOKEN = "ghp_..."
    function work-vpn { Connect-Vpn -Name "Corporate" }
  3. local.ps1 is automatically ignored by Git and sourced at the end of profile initialization.

Testing

Run tests and benchmark startup time locally:

pwsh -NoProfile -File tests/run-tests.ps1 -Benchmark

The test runner checks syntax across all .ps1 scripts, runs profile functional tests, verifies that every shortcut is documented in Show-Help and README.md, flags absolute machine paths, and benchmarks load time.


Contributing

Please review CONTRIBUTING.md for branch naming conventions (develop base, feature/*, fix/*), Conventional Commits formatting, and PR submission guidelines.


License

This project is licensed under the MIT License.

About

A modular, high-performance PowerShell 7 environment for Windows

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages