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

# Load all supplementary scripts in ~/.profile.d
for sh in "$HOME"/.profile.d/*.sh ; do
    [ -e "$sh" ] || continue
    . "$sh"
done
unset -v sh

# If ~/.shinit exists, set ENV to that
if [ -f "$HOME"/.shinit ] ; then
    ENV=$HOME/.shinit
    export ENV
fi