aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
blob: afc308ea7a97fed8e723775d2e43728b0a854d41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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" ] && . "$sh"
done
unset -v sh

# If ENV is unset after running those scripts and ~/.shrc exists, set it as ENV
if [ -z "$ENV" ] && [ -f "$HOME"/.shrc ] ; then
    ENV=$HOME/.shrc
    export ENV
fi