aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ksh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/ksh.sh')
-rw-r--r--sh/shrc.d/ksh.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sh/shrc.d/ksh.sh b/sh/shrc.d/ksh.sh
index e95e6d3f..f1245e76 100644
--- a/sh/shrc.d/ksh.sh
+++ b/sh/shrc.d/ksh.sh
@@ -1,5 +1,7 @@
# 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
+# 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