aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 11:08:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 11:08:48 +1200
commit8749f07e0eebc96bd2aeffc7d89179961f61f77e (patch)
tree5ac5319dc9ecef182033a4b82daf812ac1342420 /sh/profile.d
parentMerge branch 'pdksh' (diff)
downloaddotfiles-8749f07e0eebc96bd2aeffc7d89179961f61f77e.tar.gz
dotfiles-8749f07e0eebc96bd2aeffc7d89179961f61f77e.zip
Set ENV appropriately if using ksh
It may end up being better to have a file "env.sh".
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/ksh.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/profile.d/ksh.sh b/sh/profile.d/ksh.sh
new file mode 100644
index 00000000..541da0d6
--- /dev/null
+++ b/sh/profile.d/ksh.sh
@@ -0,0 +1,5 @@
+# If we're running some kind of ksh, export ENV to find ~/.kshrc
+if [ -n "$KSH_VERSION" ] ; then
+ ENV=$HOME/.kshrc
+ export ENV
+fi