bash: various tweaks
[~bandali/configs] / .bash_profile
index d5f7cc9..f41056d 100644 (file)
@@ -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
+include ~/.bashrc