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.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/sh/shrc.d/ksh.sh b/sh/shrc.d/ksh.sh
new file mode 100644
index 00000000..e95e6d3f
--- /dev/null
+++ b/sh/shrc.d/ksh.sh
@@ -0,0 +1,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
+case $KSH_VERSION in
+ *'PD KSH '*)
+ [ -f "${KSH_ENV:-"$HOME"/.pdkshrc}" ] || return
+ . "${KSH_ENV:-"$HOME"/.pdkshrc}"
+ ;;
+esac