aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
blob: 17a9377273fbeb398f0b5ab57422434cb5b4fcfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Add ~/.local/bin to PATH if it exists
if [ -d "$HOME"/.local/bin ]; then
    PATH="$HOME"/.local/bin:"$PATH"
fi
export PATH

# Load all supplementary scripts in ~/.profile.d
if [ -d "$HOME"/.profile.d ]; then
    for config in "$HOME"/.profile.d/*.sh; do
        if [ -r "$config" ]; then
            . "$config"
        fi
    done
fi
unset -v config