fix: harden install.sh — Homebrew bootstrap, dnf/yum fallback, Alpine sudo, PATH cleanup

- Extract ensure_homebrew() called from all macOS install functions (prevents crash if Git checked before Node)
- Add dnf/yum fallback in Fedora install functions (fixes Amazon Linux 2 which only has yum)
- Add ensure_sudo to Alpine install functions (consistent with all other distros)
- Update Fedora/SUSE NodeSource setup to use GPG keyring method (replaces deprecated setup_XX.x script)
- Remove dist/ directory from PATH (only use ~/.local/bin symlink)
- Collapse identical fish/non-fish branches in setup_sc_alias

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-02-20 09:36:47 +01:00
co-authored by Claude Opus 4.6
parent 868d4f1196
commit b2a39a6745
5 changed files with 270 additions and 76 deletions
+14
View File
@@ -390,6 +390,20 @@ Click the chart icon on any session tab to see a complete timeline of what happe
curl -fsSL https://raw.githubusercontent.com/Ark0N/claudeman/master/install.sh | bash
```
### Windows (WSL)
```powershell
wsl bash -c "curl -fsSL https://raw.githubusercontent.com/Ark0N/claudeman/master/install.sh | bash"
```
> **Prerequisites:** Claudeman requires tmux, so Windows users need [WSL](https://learn.microsoft.com/en-us/windows/wsl/install). If you don't have WSL yet:
> 1. Run `wsl --install` in an admin PowerShell, then reboot
> 2. Open **Ubuntu** from the Start menu to complete setup (create your Linux user)
> 3. Install Claude CLI inside WSL: `curl -fsSL https://claude.ai/install.sh | bash`
> 4. Then run the one-liner above
>
> After installing, `http://localhost:3000` is accessible from your Windows browser.
### npm (alternative)
```bash