Skip to content

feat: add auto-install shell completions command (#912)#1815

Open
kovadev17 wants to merge 1 commit intohttpie:masterfrom
kovadev17:feat/auto-install-completions
Open

feat: add auto-install shell completions command (#912)#1815
kovadev17 wants to merge 1 commit intohttpie:masterfrom
kovadev17:feat/auto-install-completions

Conversation

@kovadev17
Copy link
Copy Markdown

Summary

Adds httpie completions install [shell] command that automatically installs shell completions to the appropriate directory.

Changes

  • New completions subcommand with install and list actions
  • Auto-detects current shell if not specified
  • Supports fish, bash, and zsh
  • Installs to user-writable directories by default
  • Falls back gracefully if system directories aren't writable

Usage

# Auto-detect and install for current shell
httpie completions install

# Install for specific shell
httpie completions install fish
httpie completions install bash
httpie completions install zsh

# List available completions
httpie completions list

Related

Fixes #912

Add `httpie completions install [shell]` command that automatically
installs shell completions to the appropriate directory.

Supported shells: fish, bash, zsh
Auto-detects current shell if not specified.

Fixes httpie#912
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.

fish shell completions

1 participant