aboutsummaryrefslogblamecommitdiff
path: root/sh/profile
blob: 5dfe0ef32f2b21399f39fa35665ab329b11d6132 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                       
                                   
                               
  
 





                                                



                                                                               
  
# 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" ] && . "$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