aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-10-24 13:04:53 +0200
committerKarel Kočí <cynerd@email.cz>2022-10-24 13:04:53 +0200
commit7d51487584ca3fa98d40fdb37ef143fe87ec9eca (patch)
treee1c68aedd679b2f94eafdb9e030794bbd19e89f9 /profile
parent0bdfd502a4404da0e95f7a42283011b0608580b6 (diff)
downloadmyconfigs-7d51487584ca3fa98d40fdb37ef143fe87ec9eca.tar.gz
myconfigs-7d51487584ca3fa98d40fdb37ef143fe87ec9eca.tar.bz2
myconfigs-7d51487584ca3fa98d40fdb37ef143fe87ec9eca.zip
Add result to gitignore and read all profiles
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