all repos — nixfiles @ 2118600898a557c08965aeae92e9add73778f04e

System and user configuration, managed by nix and home-manager

Only install nix-zsh-completions on non-NixOS + Nix setups
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2019 15:48:28 +0200
commit

2118600898a557c08965aeae92e9add73778f04e

parent

9ba8a1a397455ce57c39137f1b6c6d2ac48e9cb5

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.config/zsh/.zshrc
@@ -166,10 +166,7 @@ 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] ]]'