From 7d51487584ca3fa98d40fdb37ef143fe87ec9eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 24 Oct 2022 13:04:53 +0200 Subject: Add result to gitignore and read all profiles --- profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'profile') 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 -- cgit v1.2.3