1 # Autocompletion for the GitHub CLI (gh).
2 if (( ! $+commands[gh] )); then
6 # If the completion file doesn't exist yet, we need to autoload it and
7 # bind it to `gh`. Otherwise, compinit will have already done that.
8 if [[ ! -f "$ZSH_CACHE_DIR/completions/_gh" ]]; then
14 gh completion --shell zsh >| "$ZSH_CACHE_DIR/completions/_gh" &|