diff --git a/bash_profile b/bash_profile index 4c90283..ca41948 100644 --- a/bash_profile +++ b/bash_profile @@ -1,6 +1,8 @@ #!/bin/bash -source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh +if [ -f "$HOME"/.nix-profile/etc/profile.d/hm-session-vars.sh ]; then + source "$HOME"/.nix-profile/etc/profile.d/hm-session-vars.sh +fi if [ -f "$HOME"/.bash/profile ]; then source "$HOME"/.bash/profile; fi if [ -d "$HOME"/.bash/profile ]; then for file in "$HOME"/.bash/profile/*; do source "$file"; done; fi