X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/6b8582fa39ded47649cfc3d7097806a39a5889ad..54209e748b3d2b28623ca860fcfc90855f283444:/.bash_profile?ds=sidebyside diff --git a/.bash_profile b/.bash_profile index d5f7cc9..d65bb56 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,2 +1,7 @@ -[[ -f ~/.profile ]] && . ~/.profile -[[ -f ~/.bashrc ]] && . ~/.bashrc +include () { + [[ -f "$1" && -r "$1" ]] && source "$1" +} + +include ~/.profile +include ~/.nix-profile/etc/profile.d/nix.sh +[[ $TERM = "eterm-color" || $TERM = "screen" ]] || include ~/.bashrc