Skip to content

feat: Add shell completion for Zsh, Bash, Fish, and PowerShell#5177

Merged
shakkernerd merged 5 commits intomainfrom
feat_shell_completion
Jan 31, 2026
Merged

feat: Add shell completion for Zsh, Bash, Fish, and PowerShell#5177
shakkernerd merged 5 commits intomainfrom
feat_shell_completion

Conversation

@shakkernerd
Copy link
Member

Description

This PR implements comprehensive shell completion support for the OpenClaw CLI.

Changes

  • Completion Command: Added openclaw completion to generate scripts for Zsh, Bash, Fish, and PowerShell.
  • Automated Installation:
    • Added --install flag to automatically append the source command to the user's shell profile.
    • Integrated with postinstall script to set up completion automatically during package updates.
    • Added prompt to the Onboarding Wizard (openclaw onboard) for new users.
  • Support:
    • Generates dynamic Zsh completion with description support.
    • Handles subcommand recursion properly.
    • Fixes issue where CLI banner/doctor output would corrupt completion scripts.

Verification

  • Verified manually on Zsh (Mac).
  • Confirmed correct brace expansion syntax for Zsh.
  • Verified automated installation via scripts/postinstall.js.

@openclaw-barnacle openclaw-barnacle bot added cli CLI command changes scripts Repository scripts labels Jan 31, 2026
@shakkernerd shakkernerd force-pushed the feat_shell_completion branch from 5dda61c to 3c8fa0f Compare January 31, 2026 05:18
@shakkernerd shakkernerd merged commit 0b95eff into main Jan 31, 2026
40 of 43 checks passed
@shakkernerd shakkernerd deleted the feat_shell_completion branch January 31, 2026 05:18
uxcu pushed a commit to uxcu/kook-openclaw that referenced this pull request Feb 5, 2026
feat: Add shell completion for Zsh, Bash, Fish, and PowerShell
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
feat: Add shell completion for Zsh, Bash, Fish, and PowerShell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes scripts Repository scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant