summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index e1ff1dd3..c83aa234 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -153,6 +153,11 @@ compinit
 
 zplugin cdreplay -q
 
+if [[ -n $commands[ghq] && -z $functions[_ghq] ]]
+then
+  zplugin creinstall "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh/"
+fi
+
 # General configuration
 
 if [[ -n $commands[hub] ]]