aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ksh.sh
blob: f1245e76dc7c14fc4dfd4d18efef89074c189b44 (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 '*)
        [ -f "${KSH_ENV:-"$HOME"/.pdkshrc}" ] || return
        . "${KSH_ENV:-"$HOME"/.pdkshrc}"
        ;;
esac