From 81f58a57443236b0ef341c050780d73d566e8496 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Aug 2016 19:59:43 +1200 Subject: Move ksh ENV handling into shrc.d --- sh/shrc.d/ksh.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sh/shrc.d/ksh.sh (limited to 'sh/shrc.d/ksh.sh') 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 -- cgit v1.2.3