GH-COMPLETION(1) GitHub CLI manual GH-COMPLETION(1) (NAME) gh-completion - (SYNOPSIS) gh completion -s (DESCRIPTION) (GitHub CLI). GitHub CLI . Homebrew : . . . bash bash-completion . ~/.bash_profile : eval "$(gh completion -s bash)" zsh _gh $fpath : gh completion -s zsh > /usr/local/share/zsh/site-functions/_gh ~/.zshrc : autoload -U compinit compinit -i . Zsh . fish gh.fish : gh completion -s fish > ~/.config/fish/completions/gh.fish PowerShell : mkdir -Path (Split-Path -Parent $profile) -ErrorAction SilentlyContinue notepad $profile : Invoke-Expression -Command $(gh completion -s powershell | Out-String) (OPTIONS) -s, --shell : {bash|zsh|fish|powershell} (EXIT CODES) 0: 1: 2: 4: : . . (SEE ALSO) gh(1) Sep 2026 GH-COMPLETION(1)