Files
bash-it/completion/available/github-cli.completion.bash
Noah Gorny 8a36f21ca1 Add _binary_exists and use in github-cli completion
gh was also used as an git alias, and caused _command_exists to not fail as expected
2020-10-21 00:14:11 +03:00

11 lines
294 B
Bash

#!/usr/bin/env bash
cite "about-completion"
about-completion "GitHub CLI completion"
if _binary_exists gh; then
if _command_exists brew; then
_log_warning "You don't need github-cli completion enabled if you have system completion enabled"
fi
eval "$(gh completion --shell=bash)"
fi