zsh: Only set gh completion when _gh is defined
Alan Pearce alan@alanpearce.co.uk
Wed, 09 Jul 2014 18:31:00 +0100
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M tag-zsh/config/zsh/zshrc → tag-zsh/config/zsh/zshrc
@@ -277,7 +277,9 @@ alias -s log=less if [[ -e =gh ]]; then alias git="gh" - compdef _gh gh + if [[ -n $functions[_gh] ]];then + compdef _gh gh + fi fi if [[ -n $commands[composer.phar] && ! -n $commands[composer] ]]; then