Improve nix init

main
Yax 1 month ago
parent 0b9d874390
commit d208a5dafb

@ -200,10 +200,12 @@ fi
# Nix # 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' alias nix-update='nix-channel --update && nix-env -u'
nix-search() { nix-search() {
nix-env -qa --description ".*$1.*" nix-env -qa --description ".*$1.*"
} }
fi fi

Loading…
Cancel
Save