summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2017-06-13 12:09:20 +0200
committerAlan Pearce2017-06-13 12:09:20 +0200
commit606dd4aebd11b0e483ec812aa2bca9a87ee869d7 (patch)
tree5970699bc3bb089abcca74dedf6cf161b4d48a88 /zsh
parent867f8a4c5eefcce37933a20c06f5f82585561f43 (diff)
downloadnixfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.tar.lz
nixfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.tar.zst
nixfiles-606dd4aebd11b0e483ec812aa2bca9a87ee869d7.zip
zsh: Ensure ghq completion is installed
Diffstat (limited to 'zsh')
-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] ]]