about summary refs log tree commit diff
path: root/profile/.profile
blob: b05eafbe2614e7a502aa9499a162fffb133f293e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

if [ "$(umask)" = "000" ] || [ "$(umask)" = "0000" ]
then
    umask 0022
fi

if [ -f "/etc/profile.env" ]
then
    # shellcheck disable=SC1091
    . "/etc/profile.env"
fi

for i in /etc/profile.d/*.sh
do
    # shellcheck disable=SC1090
    [ -r "$i" ] && . "$i"
done

for i in "${HOME}"/.profile.d/*.sh
do
    # shellcheck disable=SC1090
    [ -r "$i" ] && . "$i"
done

export PROFILE_SOURCED="1"

Consider giving Nix/NixOS a try! <3