summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-13 12:09:20 +0200
committerAlan Pearce2017-06-13 12:09:20 +0200
commit606dd4aebd11b0e483ec812aa2bca9a87ee869d7 (patch)
tree5970699bc3bb089abcca74dedf6cf161b4d48a88
parent867f8a4c5eefcce37933a20c06f5f82585561f43 (diff)
downloaddotfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.tar.lz
dotfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.tar.zst
dotfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.zip
zsh: Ensure ghq completion is installed
-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 e1ff1dd..c83aa23 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] ]]