Skip to content

feat: add --install flag for auto-installing shell completions#9

Merged
bigknoxy merged 2 commits into
mainfrom
feature/completion-auto-install
Mar 2, 2026
Merged

feat: add --install flag for auto-installing shell completions#9
bigknoxy merged 2 commits into
mainfrom
feature/completion-auto-install

Conversation

@bigknoxy

@bigknoxy bigknoxy commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds --install flag to exa completion command for automatic shell detection and completion installation
  • Supports --dry-run to preview installation without making changes
  • Updates install.sh to show completion hint after successful install
  • Updates README.md with new usage examples

Usage

exa completion --install           # Auto-detect shell, install
exa completion bash --install      # Explicit shell
exa completion --install --dry-run # Preview actions

Installation Paths

Shell Path
Bash ~/.bashrc (appended with marker comments)
Zsh ~/.zfunc/_exa
Fish ~/.config/fish/completions/exa.fish

Tested

  • exa completion --install installs correctly
  • Running twice shows "already installed" (idempotent)
  • exa completion bash still outputs script to stdout
  • Completions work after sourcing shell config

- Update package name to scoped @bigknoxy/exa-cli
- Update all npm install/uninstall commands
- Update README badges and documentation
- Add publishConfig for public access
Adds ability to automatically detect and install shell completions:
- exa completion --install (auto-detects shell from $SHELL)
- exa completion bash --install (explicit shell)
- exa completion --install --dry-run (preview without changes)

Installation paths:
- Bash: ~/.bashrc (with marker comments for idempotency)
- Zsh: ~/.zfunc/_exa
- Fish: ~/.config/fish/completions/exa.fish

Also updates install.sh to show completion hint after successful install.
@bigknoxy
bigknoxy merged commit cefef25 into main Mar 2, 2026
5 checks passed
@bigknoxy
bigknoxy deleted the feature/completion-auto-install branch March 2, 2026 19:50
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.

1 participant