aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/profile b/profile
index 12e6fce..5fa0d56 100644
--- a/profile
+++ b/profile
@@ -10,8 +10,10 @@ export CT_LOCAL_TARBALLS_DIR="~/src/ct-ng"
export PYTHONPYCACHEPREFIX="$HOME/.cache/pycache"
# Nix
-[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && \
- . "$HOME/.nix-profile/etc/profile.d/nix.sh" # added by Nix installer
+for profile in "$HOME"/.nix-profile/etc/profile.d/*; do
+ [ -f "$profile" ] || continue
+ source "$profile"
+done
# Rest of the profile run only if login is from linux console