aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ksh.sh
blob: 046cd6c47085eba2eb23b49f8e685ed66a62f3a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# If we're running some kind of ksh, we'll need to source its specific
# configuration if it was defined or if we can find it. Bash and Zsh invoke
# their own rc files first, which I've written to then look for ~/.shrc; ksh
# does it the other way around.
case $KSH_VERSION in
    *'PD KSH '*|*'MIRBSD KSH '*)
        [ -f "${KSH_ENV:="$HOME"/.pdkshrc}" ] || return
        . "$KSH_ENV"
        ;;
esac