summary refs log tree commit diff stats
path: root/tag-zsh
diff options
context:
space:
mode:
authorAlan Pearce2014-07-09 18:31:00 +0100
committerAlan Pearce2014-07-09 18:31:00 +0100
commit9db5a1e01f69bbbbe8243a2c81107cab4b3551a7 (patch)
treededef06d95ef223bd53445cb563eb75551fc5663 /tag-zsh
parent13fb303bd972396d81a169500409551d7d5e0c24 (diff)
downloaddotfiles-9db5a1e01f69bbbbe8243a2c81107cab4b3551a7.tar.lz
dotfiles-9db5a1e01f69bbbbe8243a2c81107cab4b3551a7.tar.zst
dotfiles-9db5a1e01f69bbbbe8243a2c81107cab4b3551a7.zip
zsh: Only set gh completion when _gh is defined
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 a2ac503..8005b52 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