aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc
blob: 3e657d4c079c7fd3acd99558e9cbc3e6b1ca8ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Make sure the shell is interactive
case $- in
    *i*) ;;
    *) return ;;
esac

# Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells
# like bash will have their own functions
for shrc in "$HOME"/.shrc.d/*.sh ; do
    [ -e "$shrc" ] || continue
    . "$shrc"
done
unset -v shrc