summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2016-07-15 09:41:41 +0200
committerAlan Pearce2016-07-15 09:41:41 +0200
commitac1097615a7a2b427f6242443c57945df75eedf2 (patch)
tree246200c126bb5afdbd40eab8cccfe709220f5a13 /tag-zsh/config
parenta87c297556fb2367fd8e751955b92bc36371752d (diff)
downloadnixfiles-ac1097615a7a2b427f6242443c57945df75eedf2.tar.lz
nixfiles-ac1097615a7a2b427f6242443c57945df75eedf2.tar.zst
nixfiles-ac1097615a7a2b427f6242443c57945df75eedf2.zip
zsh: Install nix completions plugin
Diffstat (limited to 'tag-zsh/config')
-rw-r--r--tag-zsh/config/zsh/zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index cb18bea7..633d70d7 100644
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -9,6 +9,12 @@ zplug "clvv/fasd", hook-build:"PREFIX=$HOME make install"
 zplug "alanpearce/zsh-directory-history", at:"dirlog-as-zsh-function", as:command, use:"dirhist"
 zplug "alanpearce/zsh-directory-history", at:"dirlog-as-zsh-function", as:plugin
 zplug "caarlos0/zsh-open-pr", as:plugin
+if [[ -n $commands[nix-env] ]]
+then
+	zplug "spwhitt/nix-zsh-completions", as:plugin
+	fpath=($fpath $ZPLUG_REPOS/spwhitt/nix-zsh-completions)
+fi
+
 if [[ ${(SN)HOST%spotcap} ]]
 then
 	zplug "gerges/oh-my-zsh-jira-plus", as:plugin