Skip to content

Instantly share code, notes, and snippets.

@magedmak
magedmak / install.ps1
Last active May 28, 2026 00:33
Claude Code statusline — time, dir, git branch/dirty/ahead-behind, model, context %, tokens, cache, rate limits. Node.js (Windows/Mac/Linux) + Bash (Mac/Linux). One-line install inside.
# Claude Code — Statusline installer (Windows / PowerShell)
# Requires Node.js (https://nodejs.org)
#
# Run ONE line in PowerShell:
# irm https://gist.githubusercontent.com/magedmak/36980f12bc087220ece442f891098854/raw/install.ps1 | iex
$dest = "$env:USERPROFILE\.claude\statusline-command.js"
$rawJs = "https://gist.githubusercontent.com/magedmak/36980f12bc087220ece442f891098854/raw/statusline-command.js"
$cfgFile = "$env:USERPROFILE\.claude\settings.json"