summary refs log tree commit diff stats
path: root/tag-zsh
diff options
context:
space:
mode:
Diffstat (limited to 'tag-zsh')
-rwxr-xr-xtag-zsh/config/zsh/zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index a2ac5034..8005b526 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/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