Skip to content

Add mux completions install command#64

Merged
dylanjha merged 1 commit intomainfrom
autocomplete-mux-completion-install
Apr 14, 2026
Merged

Add mux completions install command#64
dylanjha merged 1 commit intomainfrom
autocomplete-mux-completion-install

Conversation

@udryan10
Copy link
Copy Markdown
Contributor

@udryan10 udryan10 commented Apr 2, 2026

Summary

  • Adds a mux completions install command that automatically detects the user's shell, appends the appropriate source line to their rc file (~/.zshrc, ~/.bashrc, or ~/.config/fish/config.fish), and confirms what was added and where.
  • Skips installation if completions are already configured.
  • Supports a --shell flag to override auto-detection.
  • Updates the README to lead with mux completions install as the primary setup path, with manual instructions as a fallback.

Test plan

  • Run mux completions install and verify it appends the correct line to the rc file
  • Run mux completions install again and verify it reports already installed
  • Run mux completions install --shell bash and verify it targets ~/.bashrc
  • Run bun test src/lib/completions.test.ts — 17 tests covering shell detection, rc file paths, completion lines, and the install logic
CleanShot 2026-04-02 at 12 23 14 CleanShot 2026-04-02 at 12 07 27 CleanShot 2026-04-02 at 12 14 06 CleanShot 2026-04-02 at 12 25 23

🤖 Generated with Claude Code

Automatically detects the user's shell and appends the completion
source line to the appropriate rc file. Updates the README to lead
with the install command and keep manual setup as a fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@udryan10 udryan10 force-pushed the autocomplete-mux-completion-install branch from e70a949 to f301e68 Compare April 2, 2026 17:27
@dylanjha dylanjha merged commit be5d6a9 into main Apr 14, 2026
7 checks passed
@dylanjha dylanjha deleted the autocomplete-mux-completion-install branch April 14, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants