Skip to content

Commit

Permalink
plugins/hub: use _command_exists
Browse files Browse the repository at this point in the history
Addresses Bash-it#1632
  • Loading branch information
gaelicWizard committed Sep 10, 2021
1 parent e513b9b commit 2cac811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/available/hub.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck shell=bash
cite about-plugin
about-plugin 'load hub, if you are using it'

command -v hub &> /dev/null && eval "$(hub alias -s)"
_command_exists hub && eval "$(hub alias -s)"

0 comments on commit 2cac811

Please sign in to comment.