mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 10:16:49 +00:00
- Auto shell detection (bash/zsh/fish) with PATH setup - Unified ~/.local/bin install (no sudo required) - ANSI colors with TTY detection, NO_COLOR support - Security: fix shell injection, error handling - Replace emojis with ASCII symbols - Update 16 files: core(6), en-docs(6), vi-docs(4)
4.8 KiB
4.8 KiB
CCS Installation Guide
One-Liner Installation (Recommended)
macOS / Linux
# Short URL (via CloudFlare)
curl -fsSL ccs.kaitran.ca/install | bash
# Or direct from GitHub
curl -fsSL https://raw.githubusercontent.com/kaitranntt/ccs/main/installers/install.sh | bash
Install Location:
- All Unix Systems:
~/.local/bin/ccs(auto-configures PATH for bash, zsh, fish)
Windows PowerShell
# Short URL (via CloudFlare)
irm ccs.kaitran.ca/install.ps1 | iex
# Or direct from GitHub
irm https://raw.githubusercontent.com/kaitranntt/ccs/main/installers/install.ps1 | iex
Auto PATH Configuration:
- Installer detects your shell (bash, zsh, fish) automatically
- Adds
~/.local/binto PATH in shell profile if needed - Idempotent: safe to run multiple times
- Shows reload instructions after install
Notes:
- Unix installer supports both direct execution (
./install.sh) and piped installation (curl | bash) - Windows installer requires PowerShell 5.1+ (pre-installed on Windows 10+)
- No sudo required on any platform
Git Clone Installation
macOS / Linux
git clone https://github.com/kaitranntt/ccs.git
cd ccs
./installers/install.sh
Windows PowerShell
git clone https://github.com/kaitranntt/ccs.git
cd ccs
.\installers\install.ps1
Note: Works with git worktrees and submodules - the installer detects both .git directory and .git file.
Manual Installation
macOS / Linux
# Create directory
mkdir -p ~/.local/bin
# Download script
curl -fsSL https://raw.githubusercontent.com/kaitranntt/ccs/main/ccs -o ~/.local/bin/ccs
chmod +x ~/.local/bin/ccs
# Add to PATH (choose your shell)
# For bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# For fish
echo 'set -gx PATH $HOME/.local/bin $PATH' >> ~/.config/fish/config.fish
Windows PowerShell
# Create directory
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.ccs"
# Download script
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/kaitranntt/ccs/main/ccs.ps1" -OutFile "$env:USERPROFILE\.ccs\ccs.ps1"
# Add to PATH (restart terminal after)
$Path = [Environment]::GetEnvironmentVariable("Path", "User")
[Environment]::SetEnvironmentVariable("Path", "$Path;$env:USERPROFILE\.ccs", "User")
What Gets Installed
Executable Location:
- macOS / Linux:
~/.local/bin/ccs(symlink to~/.ccs/ccs) - Windows:
%USERPROFILE%\.ccs\ccs.ps1
Configuration Directory (~/.ccs/):
~/.ccs/
├── ccs # Main executable (symlink target)
├── config.json # Profile configuration
├── config.json.backup # Single backup (overwrites each install)
├── glm.settings.json # GLM profile
├── VERSION # Version file
├── uninstall.sh # Uninstaller
└── .claude/ # Claude Code integration
├── commands/ccs.md # /ccs meta-command
└── skills/ # Delegation skills
Upgrade CCS
macOS / Linux
# From git clone
cd ccs && git pull && ./install.sh
# From curl install
curl -fsSL ccs.kaitran.ca/install | bash
Windows PowerShell
# From git clone
cd ccs
git pull
.\install.ps1
# From irm install
irm ccs.kaitran.ca/install.ps1 | iex
Auto PATH Configuration
The installer automatically configures your shell PATH:
Supported Shells:
- bash (
.bashrcor.bash_profile) - zsh (
.zshrc) - fish (
.config/fish/config.fish)
How It Works:
- Detects your current shell from
$SHELLenvironment variable - Checks if
~/.local/binalready in PATH - If not, adds appropriate export to shell profile
- Shows reload instructions
Idempotent:
- Safe to run multiple times
- Checks for existing CCS PATH entry before adding
- Won't create duplicate entries
Manual PATH Setup (if auto-config fails):
Bash/Zsh:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc
source ~/.bashrc # or source ~/.zshrc
Fish:
echo 'set -gx PATH $HOME/.local/bin $PATH' >> ~/.config/fish/config.fish
Requirements
macOS / Linux
bash3.2+jq(JSON processor, optional for enhanced features)- Claude CLI
Windows
- PowerShell 5.1+ (pre-installed on Windows 10+)
- Claude CLI
Installing jq (macOS / Linux, optional)
# macOS
brew install jq
# Ubuntu/Debian
sudo apt install jq
# Fedora
sudo dnf install jq
# Arch
sudo pacman -S jq
Note:
- jq enhances GLM profile creation but is not required
- Windows uses PowerShell's built-in JSON support - no jq needed
- Installer creates basic templates without jq