diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index cf9fd31..e648d1b 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -200,10 +200,12 @@ fi # Nix # --------------------------------------------------------------------------- -if command nix-env &>/dev/null; then +if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then + . $HOME/.nix-profile/etc/profile.d/nix.sh; + alias nix-update='nix-channel --update && nix-env -u' nix-search() { nix-env -qa --description ".*$1.*" } -fi \ No newline at end of file +fi