summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 32d151f9..922cfc30 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -166,10 +166,7 @@ zplugin load "unixorn/tumult.plugin.zsh"
 zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)npm*]} ]]' lucid
 zplugin light "lukechilds/zsh-better-npm-completion"
 
-zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)nix*]} ]]' lucid
-zplugin light "spwhitt/nix-zsh-completions"
-
-zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)nix-shell*]} ]]' lucid
+zplugin ice if'[[ (-n $commands[nix-env] && -z $commands[nixos-rebuild]) ]]' wait'[[ -n ${ZLAST_COMMANDS[(r)nix-shell*]} ]]' lucid
 zplugin load "chisui/zsh-nix-shell"
 
 zplugin ice if'[[ -n $commands[ghq] ]]'