diff --git a/.copilot/skills/git-workflow/SKILL.md b/.copilot/skills/git-workflow/SKILL.md index ac9cea8..3680f8b 100644 --- a/.copilot/skills/git-workflow/SKILL.md +++ b/.copilot/skills/git-workflow/SKILL.md @@ -177,9 +177,6 @@ cd ../main-project && npm link lib-sdk # Go # Use replace directive in go.mod: # replace github.com/org/lib-sdk => ../lib-sdk - -# Python -cd ../lib-sdk && uv pip install -e . ``` **Important:** Remove local links before committing. `npm link` and `go replace` are dev-only -- CI must use published packages or PR-specific refs. diff --git a/.devcontainer/README.md b/.devcontainer/README.md index cdd8730..bf204a3 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -40,7 +40,6 @@ bash setup.sh `setup.sh` is the repo's Unix entry point. It detects the OS (Linux, macOS, or WSL) and routes to the appropriate setup script. Inside a Dev Container or Codespace the environment is Linux (Ubuntu), so it will run `scripts/linux/setup.sh`, which: - Installs **zsh** and sets it as the default shell -- Installs **uv** (Python package manager) - Installs **nvm** and the latest LTS Node.js - Installs **gh** (GitHub CLI) - Installs **GitHub Copilot CLI** extension for gh @@ -124,12 +123,3 @@ Set these in GitHub -> Settings -> Codespaces -> Secrets: | `GIT_AUTHOR_EMAIL` | Your email for git commits | `45021016+primetimetank21@users.noreply.github.com` | These are applied automatically on `postCreateCommand` when the devcontainer starts. - ---- - -## Python Package Management - -Use `uv` instead of `pip` for all Python tooling: -- CLI tools: `uv tool install ` -- Libraries: `uv pip install ` -- Never use `pip install` directly. diff --git a/.github/workflows/e2e-install.yml b/.github/workflows/e2e-install.yml index bd5785f..7359e20 100644 --- a/.github/workflows/e2e-install.yml +++ b/.github/workflows/e2e-install.yml @@ -63,7 +63,6 @@ jobs: echo "--- Python toolchain ---" export PATH="$HOME/.local/bin:$PATH" - uv --version python --version || python3 --version echo "--- GitHub CLI ---" @@ -72,9 +71,6 @@ jobs: echo "--- Editors ---" vim --version | head -1 - echo "--- Multiplexer ---" - tmux -V - echo "--- Dotfiles ---" test -f "$HOME/.zshrc" && echo ".zshrc exists" test -f "$HOME/.bashrc" && echo ".bashrc exists" @@ -89,11 +85,6 @@ jobs: exit 1 fi - echo "--- squad-cli ---" - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" - squad --version | head -1 - echo "All Linux assertions passed" ' @@ -120,10 +111,7 @@ jobs: export PATH="$HOME/.local/bin:$PATH" echo "--- Post-idempotency assertions ---" - tmux -V - node --version - uv --version gh --version | head -1 echo "Post-idempotency assertions passed (Linux)" ' @@ -209,7 +197,6 @@ jobs: echo "--- Python toolchain ---" export PATH="$HOME/.local/bin:$PATH" - uv --version python --version || python3 --version echo "--- GitHub CLI ---" @@ -218,11 +205,6 @@ jobs: echo "--- Editors ---" vim --version | head -1 - echo "--- Multiplexer ---" - tmux -V - - - echo "--- Dotfiles ---" test -f "$HOME/.zshrc" && echo ".zshrc exists" test -f "$HOME/.bashrc" && echo ".bashrc exists" @@ -237,11 +219,6 @@ jobs: exit 1 fi - echo "--- squad-cli ---" - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" - squad --version | head -1 - echo "All macOS assertions passed" ' @@ -268,10 +245,7 @@ jobs: export PATH="$HOME/.local/bin:$PATH" echo "--- Post-idempotency assertions ---" - tmux -V - node --version - uv --version gh --version | head -1 echo "Post-idempotency assertions passed (macOS)" ' @@ -369,18 +343,12 @@ jobs: Assert-Command 'node' '--version' Assert-Command 'npm' '--version' - Write-Host "--- Python toolchain ---" - Assert-Command 'uv' '--version' - Write-Host "--- GitHub CLI ---" Assert-Command 'gh' '--version' Write-Host "--- Editors ---" Assert-Command 'vim' '--version' - Write-Host "--- Multiplexer ---" - Assert-Command 'psmux' '--version' - Write-Host "--- Git hooks ---" $hooksPath = & git config core.hooksPath 2>$null if ($hooksPath -eq 'hooks') { @@ -399,9 +367,6 @@ jobs: $failures += 'profile' } - Write-Host "--- squad-cli ---" - Assert-Command 'squad' '--version' - if ($failures.Count -gt 0) { Write-Host "`nFailed assertions: $($failures -join ', ')" exit 1 @@ -447,9 +412,7 @@ jobs: } Write-Host "--- Post-idempotency assertions ---" - Assert-Command 'psmux' '--version' Assert-Command 'node' '--version' - Assert-Command 'uv' '--version' Assert-Command 'gh' '--version' if ($failures.Count -gt 0) { diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index cd7ba73..0b310cb 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -65,49 +65,40 @@ jobs: - name: Validate zsh installed run: | if ! command -v zsh &>/dev/null; then - echo "❌ FAIL: zsh not found on PATH" - exit 1 - fi - echo "✅ zsh: $(zsh --version)" - - - name: Validate uv installed - run: | - export PATH="$HOME/.local/bin:$PATH" - if ! command -v uv &>/dev/null; then - echo "❌ FAIL: uv not found on PATH" + echo "FAIL: zsh not found on PATH" exit 1 fi - echo "✅ uv: $(uv --version)" + echo "OK: zsh: $(zsh --version)" - name: Validate nvm and Node.js installed run: | export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" if ! command -v nvm &>/dev/null; then - echo "❌ FAIL: nvm not available" + echo "FAIL: nvm not available" exit 1 fi if ! command -v node &>/dev/null; then - echo "❌ FAIL: node not found on PATH" + echo "FAIL: node not found on PATH" exit 1 fi - echo "✅ nvm: $(nvm --version)" - echo "✅ node: $(node --version)" - echo "✅ npm: $(npm --version)" + echo "OK: nvm: $(nvm --version)" + echo "OK: node: $(node --version)" + echo "OK: npm: $(npm --version)" - name: Validate gh CLI installed run: | if ! command -v gh &>/dev/null; then - echo "❌ FAIL: gh not found on PATH" + echo "FAIL: gh not found on PATH" exit 1 fi - echo "✅ gh: $(gh --version | head -1)" + echo "OK: gh: $(gh --version | head -1)" - name: Test idempotency (run setup a second time) run: | echo "--- Running setup script a second time to test idempotency ---" bash setup.sh - echo "✅ Second run completed without errors" + echo "OK: Second run completed without errors" - name: Run alias unit tests run: | @@ -119,6 +110,9 @@ jobs: chmod +x tests/test_alias_parity.sh bash tests/test_alias_parity.sh + - name: Run isolated tool retirement regressions + run: bash tests/test_tool_retirement.sh + - name: Check shutdown helper syntax (Bash and Zsh) run: | bash --noprofile --norc -n config/dotfiles/.aliases @@ -192,15 +186,6 @@ jobs: fi echo "zsh: $(zsh --version)" - - name: Validate uv installed - run: | - export PATH="$HOME/.local/bin:$PATH" - if ! command -v uv &>/dev/null; then - echo "FAIL: uv not found on PATH" - exit 1 - fi - echo "uv: $(uv --version)" - - name: Validate nvm and Node.js installed run: | export NVM_DIR="$HOME/.nvm" @@ -231,6 +216,12 @@ jobs: bash setup.sh echo "Second run completed without errors" + - name: Run isolated alias and retirement regressions (system Bash 3.2) + run: | + /bin/bash tests/test_aliases.sh + /bin/bash tests/test_alias_parity.sh + /bin/bash tests/test_tool_retirement.sh + - name: Check shutdown helper syntax (system Bash 3.2 and Zsh) run: | /bin/bash --version @@ -297,6 +288,9 @@ jobs: - name: Lint isolated shutdown helper harness run: shellcheck tests/test_shutdown_helpers.sh + - name: Lint isolated alias and retirement regressions + run: shellcheck tests/test_aliases.sh tests/test_tool_retirement.sh + - name: Run Bash flag compatibility gates run: bash tests/test_setup_flags.sh @@ -352,6 +346,9 @@ jobs: - name: Run TUI and resolver tests (pwsh) run: pwsh tests/test_tui_pwsh.ps1 + - name: Run isolated tool retirement regressions (pwsh) + run: pwsh -NoProfile -File tests/test_tool_retirement.ps1 + validate-ps51: name: Validate PowerShell 5.1 Compatibility runs-on: windows-latest @@ -442,6 +439,10 @@ jobs: run: | powershell -ExecutionPolicy Bypass -File tests\test_windows_setup.ps1 + - name: Run isolated tool retirement regressions (PS 5.1) + shell: powershell + run: powershell -NoProfile -ExecutionPolicy Bypass -File tests\test_tool_retirement.ps1 + - name: Run PS 5.1 flag compatibility gates shell: powershell run: | diff --git a/.tool-versions b/.tool-versions index 12ec54c..859883f 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,9 +1,7 @@ nodejs 22.23.2 nvm 0.39.7 nvm-windows 1.2.2 -uv 0.4.18 copilot-cli 1.0.69 -squad-cli 0.10.0 gh 2.92.0 delta 0.19.2 lazygit 0.63.0 diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 72ea741..c3ab5b7 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -22,7 +22,7 @@ Run `bash setup.sh` (Unix) or `powershell -File setup.ps1` (Windows) and walk aw dev-setup/ |---- setup.sh # Entry point -- Unix (Linux / macOS / WSL); thin router |---- setup.ps1 # Entry point -- Windows (PowerShell); thin router -|---- .tool-versions # asdf-style pinned versions (node, nvm, uv, gh, copilot-cli, pi, herdr) +|---- .tool-versions # asdf-style pinned versions (node, nvm, gh, copilot-cli, pi, herdr) |---- .gitattributes # eol=lf for *.sh / *.md / *.yml; eol=crlf for *.ps1 / *.psm1 / *.psd1 |---- ARCHITECTURE.md # This file |---- CHANGELOG.md # Keep-a-Changelog format @@ -47,7 +47,6 @@ dev-setup/ | | |---- herdr.sh # Install Herdr (pin from .tool-versions) | | |---- nvm.sh # Install nvm + Node (pin from .tool-versions) | | |---- pi.sh # Install pi CLI (pin from .tool-versions) -| | |---- uv.sh # Install uv Python package manager (pin from .tool-versions) | | `---- zsh.sh # Install zsh + set as default shell | | | `---- windows/ @@ -67,8 +66,6 @@ dev-setup/ | |---- nvm.ps1 # nvm-windows + Node (pin from .tool-versions) | |---- pi.ps1 # pi CLI (pin from .tool-versions) | |---- profile.ps1 # PowerShell profile injection (PS 5.1 + PS 7+ paths) -| |---- psmux.ps1 # psmux terminal multiplexer (Windows tmux alias) -| |---- uv.ps1 # uv Python package manager (pin from .tool-versions) | `---- vim.ps1 # Vim editor | |---- config/ @@ -289,7 +286,7 @@ Reference implementations: `scripts/linux/tools/nvm.sh` and `scripts/windows/too | Idempotency | `Get-Command -ErrorAction SilentlyContinue` before installing | | Logging | Dot-source `scripts/windows/lib/logging.ps1`; call `Write-Info`, `Write-Ok`, `Write-Warn`, `Write-Err` | | Exit-code discipline | After any external install, call `Assert-LastExit -ToolName ` (use `-AllowedExitCodes` for cases like winget `ALREADY_INSTALLED`) | -| PATH refresh | After an install mutates PATH, dot-source `scripts/windows/lib/path.ps1` and call `Refresh-SessionPath` so `node`, `uv`, `gh`, etc. become callable in the same session | +| PATH refresh | After an install mutates PATH, dot-source `scripts/windows/lib/path.ps1` and call `Refresh-SessionPath` so `node`, `gh`, etc. become callable in the same session | | Version pinning | Read from `.tool-versions` via `Get-ToolVersion` (dot-source `scripts/lib/Read-ToolVersion.ps1`); never hard-code versions | | Install method | Prefer `winget`; fall back to `scoop` or direct download (see `nvm.ps1` for the portable-zip pattern) | | Sourcing | `setup.ps1` dot-sources each `tools/*.ps1`; tool functions live in the parent scope and are invoked by name. Tool scripts re-dot-source their own `lib/` files so they remain runnable standalone. | @@ -343,7 +340,7 @@ The default Linux/macOS/WSL tools run in this order (defined by `DEFAULT_TOOLS` `scripts/linux/setup.sh`): ``` -prereqs -> zsh -> uv -> nvm -> gh -> auth -> copilot-cli -> squad-cli -> dotfiles -> git-hook +prereqs -> zsh -> nvm -> gh -> auth -> copilot-cli -> dotfiles -> git-hook ``` `copilot-cli` depends on `gh` being installed and (ideally) authenticated. The `auth` script handles interactive GitHub CLI authentication. @@ -359,7 +356,7 @@ does **not** drive dependencies. `$DefaultTools` is the authoritative default or The default chain is: ``` -winget-check -> git -> uv -> nvm -> gh -> auth -> vim -> psmux -> copilot -> squad-cli -> dotfiles -> profile -> git-hook +winget-check -> git -> nvm -> gh -> auth -> vim -> copilot -> dotfiles -> profile -> git-hook ``` Mapped to registry functions and the `tools/*.ps1` module that defines each: @@ -368,17 +365,14 @@ Mapped to registry functions and the `tools/*.ps1` module that defines each: |---|-------------------|---------------|--------------------| | 1 | `Invoke-WingetGate` | `tools/winget-check.ps1` | `tools/prereqs.sh` | | 2 | `Install-Git` | `tools/git.ps1` | (package prerequisite) | -| 3 | `Install-Uv` | `tools/uv.ps1` | `tools/uv.sh` | -| 4 | `Install-Nvm` | `tools/nvm.ps1` | `tools/nvm.sh` | -| 5 | `Install-GhCli` | `tools/gh.ps1` | `tools/gh.sh` | -| 6 | `Invoke-GhAuth` | `tools/auth.ps1` | `tools/auth.sh` | -| 7 | `Install-Vim` | `tools/vim.ps1` | (platform addition) | -| 8 | `Install-Psmux` | `tools/psmux.ps1` | (tmux equivalent) | -| 9 | `Install-CopilotCli` | `tools/copilot.ps1` | `tools/copilot-cli.sh` | -| 10 | `Install-SquadCli` | `tools/squad-cli.ps1` | `tools/squad-cli.sh` | -| 11 | `Install-Dotfiles` | `tools/dotfiles.ps1` | `tools/dotfiles.sh` | -| 12 | `Write-PowerShellProfile` | `tools/profile.ps1` | (PowerShell profile finalizer) | -| 13 | `Install-GitHook` | `tools/git-hook.ps1` | `tools/git-hook.sh` | +| 3 | `Install-Nvm` | `tools/nvm.ps1` | `tools/nvm.sh` | +| 4 | `Install-GhCli` | `tools/gh.ps1` | `tools/gh.sh` | +| 5 | `Invoke-GhAuth` | `tools/auth.ps1` | `tools/auth.sh` | +| 6 | `Install-Vim` | `tools/vim.ps1` | (platform addition) | +| 7 | `Install-CopilotCli` | `tools/copilot.ps1` | `tools/copilot-cli.sh` | +| 8 | `Install-Dotfiles` | `tools/dotfiles.ps1` | `tools/dotfiles.sh` | +| 9 | `Write-PowerShellProfile` | `tools/profile.ps1` | (PowerShell profile finalizer) | +| 10 | `Install-GitHook` | `tools/git-hook.ps1` | `tools/git-hook.sh` | Cross-platform invariants preserved from the Linux chain above: @@ -388,7 +382,7 @@ Cross-platform invariants preserved from the Linux chain above: Windows-specific ordering notes: - `winget-check` runs first, then `git` -- downstream steps rely on the package manager or git. -- `vim` and `psmux` are explicit `winget` installs because Windows has no equivalent pre-installed editor/multiplexer. +- `vim` is an explicit `winget` install because Windows has no equivalent pre-installed editor. - `dotfiles` + `profile` are Windows-specific finalizers: the Linux side rolls equivalent shell-rc work into `tools/zsh.sh` plus `config/dotfiles/install.sh`, but Windows needs a discrete PowerShell profile injection step (PS 5.1 + PS 7+ profile paths) after the dotfile templates are applied. - `git-hook` runs last so `core.hooksPath=hooks` is set only after the working tree is in its final state. - Registry entries absent from `$DefaultTools` are opt-in and are appended alphabetically when selected. @@ -418,7 +412,7 @@ Tool versions are pinned in the repo-root [`.tool-versions`](./.tool-versions) f - `scripts/lib/Read-ToolVersion.ps1` -- exposes `Get-ToolVersion -Name ` (PowerShell) - `scripts/lib/read-tool-version.sh` -- same contract for POSIX shells (prints to stdout) -Currently pinned: `nodejs`, `nvm`, `nvm-windows`, `uv`, `copilot-cli`, `gh`, `pi`, `herdr`. Tool installers (e.g. `scripts/windows/tools/nvm.ps1`, `scripts/linux/tools/uv.sh`) call the library at install time so version bumps are a single-file edit. +Currently pinned: `nodejs`, `nvm`, `nvm-windows`, `copilot-cli`, `gh`, `pi`, `herdr`. Tool installers (e.g. `scripts/windows/tools/nvm.ps1`, `scripts/linux/tools/nvm.sh`) call the library at install time so version bumps are a single-file edit. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c8e726..26ae8e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Embedded squad infrastructure: removed `.squad/` directory and all internal AI-agent coordination tooling from the repository. Project coordination now handled externally. (PR #475, PR #477) - Branch naming convention changed from `squad/{issue}-{slug}` to `feat|fix|chore|docs|refactor/{issue}-{slug}` (conventional commit prefixes). - Removed all `squad-cli` tool references from documentation and examples. +- Retired uv, Squad (`squad-cli` / `squad`, including `gosquad`), tmux, and psmux + from installers, defaults, pins, prerequisites, shell helpers, startup hooks, + and Squad-specific Codespaces bootstrap. Updated tests/CI and current examples; + existing machine installations are not uninstalled. (#518) ## [0.9.8] - 2026-05-19 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f9767e2..1b5e65e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -80,7 +80,7 @@ This project uses [Conventional Commits](https://www.conventionalcommits.org/). **Examples:** ``` -feat(linux): add uv install script +feat(linux): add delta install script fix(windows): handle missing winget gracefully docs(readme): add --skip-auth flag note chore(ci): pin shellcheck version diff --git a/README.md b/README.md index d0d63dd..d3b308f 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,12 @@ | Tool | Purpose | |------|---------| | `zsh` | Shell -- installed and set as default on Linux/macOS | -| `uv` | Python package and environment manager (fast pip replacement) | | `nvm` + Node.js LTS | Node Version Manager + latest Node LTS | | `gh` | GitHub CLI | | GitHub Copilot CLI | AI pair programmer in your terminal (`gh copilot`) | -| `squad` CLI | Multi-agent copilot orchestrator (`gosquad` launcher) | | `pi` | Pi coding agent CLI (opt-in via `--only=pi` / `-Only 'pi'`) | | `herdr` | Herdr terminal workspace manager (opt-in via `--only=herdr` / `-Only 'herdr'`) | | `vim` | Modal text editor -- installed on all platforms | -| `tmux` | Terminal multiplexer (Linux/macOS) | -| `psmux` | Terminal multiplexer (Windows) | | Shell aliases | Shortcuts for common git and dev commands | ## Supported Platforms @@ -69,11 +65,9 @@ Run setup normally to open the picker in an interactive terminal, or request it | Explicitly request the picker | `./setup.sh --interactive` | `.\setup.ps1 -Interactive` | | Explicitly suppress the picker | `./setup.sh --non-interactive` | `.\setup.ps1 -NonInteractive` | -![Bash interactive tool picker with defaults checked and the delta opt-in selected](docs/media/tui-demo/tui-demo.gif) - -*Bash picker demo. PowerShell provides an equivalent picker. For automation and -devcontainers, use `--non-interactive` or `SETUP_NON_INTERACTIVE=1`; CI -auto-detect also suppresses the menu, so it is never required.* +For automation and devcontainers, use `--non-interactive` or +`SETUP_NON_INTERACTIVE=1`; CI auto-detect also suppresses the menu, so it is +never required. An explicit interactive request still obeys the CI/headless safety checks. The picker is automatically suppressed when setup detects CI, GitHub Actions, redirected or unavailable @@ -135,8 +129,8 @@ present. # Print usage ./setup.sh --help -# Install only zsh and uv -./setup.sh --only=zsh,uv +# Install only zsh and gh +./setup.sh --only=zsh,gh # Install everything except auth and copilot-cli ./setup.sh --skip=auth,copilot-cli @@ -161,12 +155,12 @@ present. ### Caveats **`--only` / `-Only` does not auto-include prerequisites.** Selecting `--only=nvm` installs -only nvm -- its prerequisite tools (`prereqs`, `zsh`, `uv`) are not pulled in automatically. +only nvm -- earlier steps (`prereqs`, `zsh`) are not pulled in automatically. If a tool depends on earlier steps, list all required tools explicitly: ```bash # Correct: include prereqs before nvm -./setup.sh --only=prereqs,uv,nvm +./setup.sh --only=prereqs,nvm ``` **`--only` and `--skip` are mutually exclusive.** Combining both flags exits with an error. @@ -222,10 +216,8 @@ dev-setup/ | | +-- copilot-cli.sh | | +-- herdr.sh | | +-- pi.sh -| | +-- squad-cli.sh | +-- gh.sh | | +-- nvm.sh -| | +-- uv.sh | | \-- zsh.sh | \-- windows/ | +-- setup.ps1 -- Orchestrator (dot-sources tools/ scripts) @@ -233,9 +225,8 @@ dev-setup/ | \-- tools/ -- Per-tool install scripts | +-- auth.ps1 -- GitHub CLI authentication (interactive) | +-- copilot.ps1, dotfiles.ps1, gh.ps1, git.ps1, nvm.ps1 -| +-- herdr.ps1, pi.ps1, profile.ps1, psmux.ps1, squad-cli.ps1 -| +-- uv.ps1, vim.ps1 -| \-- (12 files total) +| +-- herdr.ps1, pi.ps1, profile.ps1, vim.ps1 +| \-- (14 files total) +-- config/ | \-- dotfiles/ -- Dotfile templates (.aliases, .gitconfig, .editorconfig, etc.) | \-- install.sh -- Dotfile installer @@ -266,12 +257,10 @@ After running setup, you get shortcuts for common git, dev, and utility commands **GitHub CLI:** `ghpr`, `ghprl`, `ghprv`, `ghis`, `ghiv` -**Dev tools:** `uvr`, `uvs`, `ni`, `nr`, `nrd`, `nrt`, `py`, `c`, `gosquad` +**Dev tools:** `ni`, `nr`, `nrd`, `nrt`, `py`, `c` **Utility:** `myip`, `pb`, `h`, `ep` -**tmux/psmux:** `ta` (attach), `tt` (new session), `tls` (list sessions), `tks` (kill server) - **Navigation** (Linux/macOS only): `..`, `...`, `....`, `~`, `-` **ls shortcuts** (Linux/macOS only): `ll`, `la`, `l`, `lh` @@ -306,18 +295,6 @@ The following helper functions are available after setup: ### Linux / macOS / WSL -**`create_tmux`** -- Create or attach to the `tank_dev` tmux session. If the session exists, attaches to it. If not, creates it first. - -```bash -create_tmux -``` - -**`start_up`** -- Shortcut that calls `create_tmux`. Use this in your shell startup for auto-attach. - -```bash -start_up -``` - #### Shutdown helpers (Bash/Zsh) **`sdn`** requests immediate shutdown, **`tsdn `** schedules shutdown, @@ -381,14 +358,6 @@ CI includes both shells and macOS system Bash 3.2. These simulated tests do not prove live WSL or OS-level shutdown behavior; do not validate with a live schedule-then-cancel experiment. -### Windows - -**`New-PsmuxSession`** -- Create or attach to the `tank_dev` psmux session (Windows equivalent of `create_tmux`). - -```powershell -New-PsmuxSession -``` - ## Git Hooks (Auto-configured) Both `setup.sh` and `setup.ps1` automatically configure git to use this repo's hooks directory: @@ -453,7 +422,6 @@ Tool versions are pinned in `.tool-versions` at the repo root (asdf/mise format) nodejs 22.23.2 nvm 0.39.7 nvm-windows 1.2.2 -uv 0.4.18 copilot-cli 1.0.69 gh 2.92.0 pi 0.86.1 diff --git a/config/dotfiles/.aliases b/config/dotfiles/.aliases index 4bc371e..66334d6 100644 --- a/config/dotfiles/.aliases +++ b/config/dotfiles/.aliases @@ -41,7 +41,6 @@ # - Git # - GitHub CLI (gh) # - Docker (optional) -# - Tmux # - Utility # - Dev shortcuts @@ -103,13 +102,6 @@ alias dkc='docker-compose' alias dkps='docker ps' alias dkpsa='docker ps -a' -# ── Tmux ───────────────────────────────────────────────────────────────────── - -alias tls="tmux ls" # list active tmux sessions -alias tks="tmux kill-server" # kill all tmux sessions -alias tt="tmux new-session -s tank_dev" # create a new named tmux session -alias ta="tmux attach" # attach to most recent tmux session - # ── Utility ────────────────────────────────────────────────────────────────── alias c='clear' @@ -131,36 +123,10 @@ alias ep='${EDITOR:-vim} ~/.bash_profile' # open profile in editor alias py='python3' alias pip='pip3' -alias uvr='uv run' -alias uvs='uv sync' alias ni='npm install' alias nr='npm run' alias nrd='npm run dev' alias nrt='npm run test' -alias gosquad='copilot --agent squad --yolo' - -# ── Squad HQ env (Codespaces only) ─────────────────────────────────────────── - -if [[ -n "${CODESPACES:-}" ]]; then - export SQUAD_HQ_ROOT="/workspaces/clonewars-squad-hq" - export SQUAD_WORK_REPO="${GITHUB_REPOSITORY##*/}" -fi - -# ── Functions ──────────────────────────────────────────────────────────────── - -# Create or attach to the tank_dev tmux session -create_tmux() { - local session="tank_dev" - if ! tmux has-session -t "$session" 2>/dev/null; then - tmux new-session -d -s "$session" - fi - tmux attach -t "$session" -} - -# Run on shell startup — launch tmux session -start_up() { - create_tmux -} # ── Shutdown (Windows host on WSL; sudo on native Linux/macOS) ──────────────── diff --git a/config/dotfiles/.zshrc.template b/config/dotfiles/.zshrc.template index 938d799..1bdee3f 100644 --- a/config/dotfiles/.zshrc.template +++ b/config/dotfiles/.zshrc.template @@ -11,15 +11,6 @@ export NVM_DIR="$HOME/.nvm" [ -f "$HOME/.aliases" ] && source "$HOME/.aliases" # --- end dev-setup managed block --- -# ── Startup ────────────────────────────────────────────────────────────────── - -# Auto-attach tmux on shell startup when TMUX_AUTOSTART=1 is exported. -# Default OFF -- export TMUX_AUTOSTART=1 in your env (or ~/.zshrc) to keep -# the legacy auto-attach behavior. -if [ "${TMUX_AUTOSTART:-}" = "1" ]; then - type start_up &>/dev/null && start_up -fi - # ── Prompt (optional — customize or use oh-my-zsh/starship) ───────────────── # Uncomment to use a minimal custom prompt: diff --git a/config/dotfiles/README.md b/config/dotfiles/README.md index 3d226c9..125c643 100644 --- a/config/dotfiles/README.md +++ b/config/dotfiles/README.md @@ -220,12 +220,6 @@ remain in `$HOME/.gitconfig` -- just edit the file manually. | `git undo` | `git reset --soft HEAD~1` | | `git unstage` | `git restore --staged` | -**Shell Aliases:** - -| Alias | Expands to | -|-------|-----------| -| `gosquad` | `copilot --agent squad --yolo` | - --- ### `.editorconfig` diff --git a/config/dotfiles/install.sh b/config/dotfiles/install.sh index 571c1ca..6b63eb2 100644 --- a/config/dotfiles/install.sh +++ b/config/dotfiles/install.sh @@ -2,11 +2,11 @@ # config/dotfiles/install.sh # # Idempotent dotfile installer. -# - Copies .gitconfig.template → $HOME/.gitconfig (with backup if needed) -# - Copies .npmrc.template → $HOME/.npmrc -# - Symlinks .editorconfig → $HOME/.editorconfig -# - Symlinks .aliases → $HOME/.aliases -# - Copies .zshrc.template → $HOME/.zshrc (fresh install only) +# - Copies .gitconfig.template -> $HOME/.gitconfig (with backup if needed) +# - Copies .npmrc.template -> $HOME/.npmrc +# - Symlinks .editorconfig -> $HOME/.editorconfig +# - Symlinks .aliases -> $HOME/.aliases +# - Copies .zshrc.template -> $HOME/.zshrc (fresh install only) # OR appends dev-setup managed block to existing $HOME/.zshrc # - Appends dev-setup managed block to existing $HOME/.bashrc # @@ -15,27 +15,27 @@ # ./config/dotfiles/install.sh --dry-run # show what would happen # # Env vars honoured at install time (substituted into .gitconfig): -# GIT_AUTHOR_NAME → replaces YOUR_NAME -# GIT_AUTHOR_EMAIL → replaces YOUR_EMAIL -# GIT_AUTHOR_SIGNING_KEY → replaces YOUR_SIGNING_KEY (and uncomments the line) +# GIT_AUTHOR_NAME -> replaces YOUR_NAME +# GIT_AUTHOR_EMAIL -> replaces YOUR_EMAIL +# GIT_AUTHOR_SIGNING_KEY -> replaces YOUR_SIGNING_KEY (and uncomments the line) set -euo pipefail -# ── Resolve the directory containing this script ──────────────────────────── +# -- Resolve the directory containing this script ---------------------------- DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -# ── Colour helpers ─────────────────────────────────────────────────────────── +# -- Colour helpers ----------------------------------------------------------- GREEN='\033[0;32m' YELLOW='\033[1;33m' CYAN='\033[0;36m' RESET='\033[0m' -ok() { printf "${GREEN}✓ %s${RESET}\n" "$*"; } -skip() { printf "${CYAN}→ Already installed: %s${RESET}\n" "$*"; } +ok() { printf "${GREEN}\342\234\223 %s${RESET}\n" "$*"; } +skip() { printf "${CYAN}\342\206\222 Already installed: %s${RESET}\n" "$*"; } info() { printf "${YELLOW} %s${RESET}\n" "$*"; } dry() { printf "${YELLOW}[dry-run] %s${RESET}\n" "$*"; } -# ── Parse flags ────────────────────────────────────────────────────────────── +# -- Parse flags -------------------------------------------------------------- DRY_RUN=false for arg in "$@"; do case "$arg" in @@ -44,7 +44,7 @@ for arg in "$@"; do esac done -# ── Helper: timestamped backup, keep last N copies ─────────────────────────── +# -- Helper: timestamped backup, keep last N copies --------------------------- # Usage: backup_file [] # Creates .bak.YYYYMMDD-HHMMSS and trims all but the N most recent. # DOTFILE_BACKUP_KEEP overrides the default of 5 at install time. @@ -61,7 +61,7 @@ backup_file() { ls -t "${target}.bak."* 2>/dev/null | tail -n +$((keep + 1)) | xargs -r rm -- } -# ── Helper: copy a template file, skipping if destination already matches ─── +# -- Helper: copy a template file, skipping if destination already matches --- # Usage: install_copy [