Skip to content

Add comprehensive Windows development environment setup scripts#4

Open
piotrpawlowski7 wants to merge 4 commits into
arvindjuneja:mainfrom
piotrpawlowski7:claude/test-claude-monitor-s8Po4
Open

Add comprehensive Windows development environment setup scripts#4
piotrpawlowski7 wants to merge 4 commits into
arvindjuneja:mainfrom
piotrpawlowski7:claude/test-claude-monitor-s8Po4

Conversation

@piotrpawlowski7

Copy link
Copy Markdown

Summary

This PR adds complete Windows support to the development setup automation, bringing feature parity with the existing macOS setup. It includes interactive setup scripts for development tools, terminal customization, terminal multiplexing, and Claude Code monitoring on Windows.

Key Changes

  • New Windows Setup Scripts

    • setup-windows.ps1 - Interactive menu-driven main entry point for Windows setup
    • windows/setup-dev-env.ps1 - Installs Git, Python (via pyenv-win), Node.js, and utilities using winget and scoop
    • windows/pimp-my-terminal.ps1 - Configures Oh My Posh, PSReadLine, Terminal-Icons, modern CLI tools (eza, bat, fzf, fd), and Catppuccin Mocha theme
    • windows/setup-tmux.ps1 - Sets up Windows Terminal panes, optional WSL2 + tmux, and btop system monitor
    • windows/setup-claude-monitor.ps1 - Deploys Claude Code monitoring dashboard with uv package runner
    • windows/verify-setup.ps1 - Verification script to check installed tools and configurations
  • Configuration Files

    • windows/configs/oh-my-posh-theme.json - Catppuccin Mocha theme for Oh My Posh with OS indicator, path, git status, Python/Node version display, and time
    • windows/configs/windows-terminal-settings.json - Catppuccin Mocha color scheme for Windows Terminal
  • Utility Scripts

    • windows/dev-session.ps1 - Creates pre-configured Windows Terminal multi-pane layout (Claude Code + dev server + system monitor)
  • Cross-Platform Updates

    • Enhanced scripts/claude-monitor.py with Windows process detection via PowerShell/wmic, replacing Unix-only ps/lsof approach
    • Updated README.md with Windows setup instructions and equivalency table for macOS/Windows tools

Implementation Details

  • Package Management: Uses winget (built-in) for system packages and scoop for CLI tools, mirroring the macOS Homebrew approach
  • Python Management: Implements pyenv-win for Python version management on Windows
  • Terminal Customization: Provides Oh My Posh configuration with Catppuccin Mocha theme, PSReadLine for autosuggestions/syntax highlighting, and Terminal-Icons for file icons
  • WSL Integration: Optional WSL2 + tmux setup with automatic configuration deployment to Linux subsystem
  • Cross-Platform Monitoring: Claude monitor script now detects Windows processes and calculates elapsed time correctly for both Unix and Windows systems
  • Error Handling: All scripts include proper error handling, PATH refreshing after installations, and backup creation for existing configurations

https://claude.ai/code/session_01C3rnfcpBju7cYRw8Az2WF8

claude and others added 4 commits March 14, 2026 10:55
Create full Windows equivalent of the macOS dev environment toolkit:
- setup-windows.ps1: Main entry point with same interactive menu
- windows/setup-dev-env.ps1: Dev tools via winget + scoop (Git, Python/pyenv-win, Node.js, utilities)
- windows/pimp-my-terminal.ps1: Oh My Posh + PSReadLine + modern CLI tools (eza, bat, fzf, fd)
- windows/setup-tmux.ps1: Windows Terminal panes + optional WSL2/tmux with Catppuccin theme
- windows/setup-claude-monitor.ps1: Claude Monitor installer for Windows
- windows/dev-session.ps1: Multi-pane layout launcher via wt CLI
- windows/verify-setup.ps1: Full verification of all installed components
- windows/configs/oh-my-posh-theme.json: Catppuccin Mocha theme for Oh My Posh
- windows/configs/windows-terminal-settings.json: Catppuccin Mocha color scheme
- Updated claude-monitor.py with Windows process detection (PowerShell-based)
- Updated README.md with Windows setup instructions and feature mapping

https://claude.ai/code/session_016zV6j561wMCUZZf3Q7r2CQ
The Install-UV function used Get-Command to check if uv exists, which
finds broken Scoop shims (uv.ps1) even when the actual binary is missing.
This caused uv --version to throw CommandNotFoundException, crashing the
script due to $ErrorActionPreference = "Stop".

Now uses try/catch around uv --version to verify uv actually works before
skipping installation. Broken shims are handled gracefully by falling
through to the install path.

https://claude.ai/code/session_01DKnj6nhyTVzn4vVygVSVyi
…cript-51BxA

Claude/fix windows setup script 51 bx a
- Raise CPU color thresholds to be meaningful on multi-core systems:
  >500% = RED (runaway), >100% = PEACH (elevated), ≤100% = normal.
  Old thresholds (>50 RED, >10 PEACH) were too aggressive and caused
  normal multi-threaded processes to always appear red.
- Fix get_today_stats() timestamp parsing to auto-detect milliseconds
  vs seconds by checking magnitude (ts > 1e11 → divide by 1000).
  Previously, second-based timestamps would produce dates in 1970,
  causing Messages and Sessions to always show 0.

https://claude.ai/code/session_01C3rnfcpBju7cYRw8Az2WF8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants