completion
Generates shell completion scripts through Cobra.
Usage
git-wrangler completion [bash|zsh|fish|powershell]
Homebrew installs bash, zsh, and fish completions automatically, so manual completion setup is usually only needed for manual binary installs.
Scoop also installs completions automatically for supported shells.
Manual setup
# Bash
git-wrangler completion bash > /etc/bash_completion.d/git-wrangler
# Zsh
git-wrangler completion zsh > "${fpath[1]}/_git-wrangler"
# Fish
git-wrangler completion fish > ~/.config/fish/completions/git-wrangler.fish
PowerShell:
git-wrangler completion powershell > git-wrangler.ps1
The exact installation location depends on your shell and operating system. Run git-wrangler completion <shell> --help for Cobra’s shell-specific notes.