aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-17 20:15:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-17 20:18:27 +1200
commit1d5845eed2d9450c84ca046749c73ebde2bdfafb (patch)
tree5d5dcf948b94f67679fbc26ce273aecc6b5d03dc /sh
parentSimplify end-of-file loop in bashrc (diff)
downloaddotfiles-1d5845eed2d9450c84ca046749c73ebde2bdfafb.tar.gz
dotfiles-1d5845eed2d9450c84ca046749c73ebde2bdfafb.zip
Explain ksh.sh a bit more
Diffstat (limited to '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