Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20WSL%20%7C%20MinGW-blue?style=for-the-badge" alt="Platform support" />
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20WSL%20%7C%20Windows-blue?style=for-the-badge" alt="Platform support" />
<a href="LICENSE">
<img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge" alt="MIT License" />
</a>
Expand All @@ -27,10 +27,23 @@ Install with one command. Works immediately. Configure when you need it.

## ✨ Quick Install

**macOS / Linux / WSL**
```bash
curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.sh | bash
```

**Windows — PowerShell**
```powershell
irm https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.ps1 | iex
```

**Windows — CMD**
```cmd
curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/main/install.cmd -o install.cmd && install.cmd && del install.cmd
```

> **Windows requires [Git for Windows](https://git-scm.com/download/win).** Install it first if you don't have it.

## Features

- 📁 **Directory name**
Expand All @@ -44,11 +57,7 @@ curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/

## ⚙️ Configuration

Re-run the installer to change language or toggle features:

```bash
./install.sh
```
Re-run the installer to change language or toggle features. Use the same command for your platform as in Quick Install above.

## 🛠️ Development

Expand Down
24 changes: 24 additions & 0 deletions install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off
setlocal

:: install.cmd - Windows CMD wrapper for Claude Code Statusline installer
:: Delegates all installation work to install.ps1 via PowerShell.
::
:: Usage (remote):
:: curl -fsSL https://raw.githubusercontent.com/glauberlima/claude-code-statusline/refs/heads/main/install.cmd -o install.cmd && install.cmd && del install.cmd
::
:: Usage (local, from repo directory):
:: install.cmd

where powershell.exe >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo ERROR: PowerShell is required but not found.
echo Please run instead:
echo irm https://raw.githubusercontent.com/glauberlima/claude-code-statusline/refs/heads/main/install.ps1 ^| iex
exit /b 1
)

powershell.exe -NoProfile -ExecutionPolicy Bypass -Command ^
"Invoke-Expression (Invoke-RestMethod 'https://raw.githubusercontent.com/glauberlima/claude-code-statusline/refs/heads/main/install.ps1')"

exit /b %ERRORLEVEL%
Loading