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

# 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