all repos — nixfiles @ 9db5a1e01f69bbbbe8243a2c81107cab4b3551a7

System and user configuration, managed by nix and home-manager

zsh: Only set gh completion when _gh is defined

Alan Pearce
commit

9db5a1e01f69bbbbe8243a2c81107cab4b3551a7

parent

13fb303bd972396d81a169500409551d7d5e0c24

1 file changed, 3 insertions(+), 1 deletion(-)

jump to
M tag-zsh/config/zsh/zshrctag-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