blob: aced40c217a13ebac50d41b2a0073f3e20840bff (
plain) (
tree)
|
|
# 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 profile in "$HOME"/.profile.d/*.sh ; do
[ -e "$profile" ] || continue
. "$profile"
done
unset -v profile
# 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
|