plugins/hub: use _command_exists

Addresses bash-it/bash-it#1632
This commit is contained in:
John D Pell
2021-09-19 21:39:43 -07:00
parent 635e5488ba
commit 3e2ec1232d
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
# shellcheck shell=bash
cite about-plugin
about-plugin 'load hub, if you are using it'
command -v hub &> /dev/null && eval "$(hub alias -s)"
if _command_exists hub; then
eval "$(hub alias -s)"
fi