diff --git a/home/.bashrc b/home/.bashrc index f547d952..f2462064 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -39,6 +39,13 @@ export PATH="$(shopt -s nullglob; printf "%s:" \ ~/.emacs.d/bin \ )" +if [[ -f ~/.nix-profile/etc/profile.d/nix.sh ]]; then + source ~/.nix-profile/etc/profile.d/nix.sh +fi +if [[ -f ~/.nix-profile/etc/profile.d/hm-session-vars.sh ]]; then + source ~/.nix-profile/etc/profile.d/hm-session-vars.sh +fi + command -v direnv >/dev/null 2>&1 && eval "$(direnv hook bash)" ########################### diff --git a/home/.zshrc b/home/.zshrc index a6036120..32642f4a 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -20,6 +20,13 @@ typeset -U path ) } +if [[ -f ~/.nix-profile/etc/profile.d/nix.sh ]]; then + source ~/.nix-profile/etc/profile.d/nix.sh +fi +if [[ -f ~/.nix-profile/etc/profile.d/hm-session-vars.sh ]]; then + source ~/.nix-profile/etc/profile.d/hm-session-vars.sh +fi + command -v direnv >/dev/null 2>&1 && eval "$(direnv hook zsh)" ###########################