aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ksh.sh
blob: 5e9fee3b3ee6cf138ebe22e0e36e2363e3e8e9cb (plain) (blame)
1
2
3
4
5
6
7
8
# 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.
[ -n "$KSH_VERSION" ] || [ -n "${.sh.version}" ] || return
[ -n "$KSH_ENV" ] || KSH_ENV=$HOME/.kshrc
[ -f "$KSH_ENV" ] || return
. "$KSH_ENV"