Update command checks to use a faster method
This commit is contained in:
parent
6ce632755c
commit
83b6e927c6
7 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Setup GitHub Copilot
|
||||
# first check we even have the genereic `gh` command
|
||||
if type gh > /dev/null; then
|
||||
if (( ${+commands[gh]} )); then
|
||||
# Now check we have the copilot plugin installed with `gh`
|
||||
if gh extension list | rg copilot -c > /dev/null; then
|
||||
eval "$(gh copilot alias -- zsh)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue