summary refs log tree commit diff stats
path: root/tag-zsh
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
parenta87c297556fb2367fd8e751955b92bc36371752d (diff)
downloaddotfiles-ac1097615a7a2b427f6242443c57945df75eedf2.tar.lz
dotfiles-ac1097615a7a2b427f6242443c57945df75eedf2.tar.zst
dotfiles-ac1097615a7a2b427f6242443c57945df75eedf2.zip
zsh: Install nix completions plugin
Diffstat (limited to 'tag-zsh')
-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 cb18bea..633d70d 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