source nix shell init directly and initialize autocomplete scripts

main
Andrew Coleman 2023-03-23 13:53:27 -04:00
parent 20bdd87a75
commit 56ca4c33b7
1 changed files with 5 additions and 3 deletions

8
.zshrc
View File

@ -1,6 +1,5 @@
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
source /nix/var/nix/profiles/default/etc/profile.d/nix.sh
export BAT_THEME="Solarized (light)"
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
@ -95,3 +94,6 @@ alias z="$(which zoxide)"
[ -f "$HOME/.zshrc.local" ] && source "$HOME/.zshrc.local"
[ -f "$HOME/.zshrc.auto" ] && source "$HOME/.zshrc.auto"
FPATH="$HOME/.nix-profile/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit && compinit