diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-10 11:17:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-10 11:17:37 +1200 |
commit | fc7ccd48bec1bd6ea8201533977e154ae4d94aaa (patch) | |
tree | 9335a2d5f5832741f5a97e491620e199e7569144 /sh | |
parent | Limit prompt setup to OpenBSD pdksh (diff) | |
download | dotfiles-fc7ccd48bec1bd6ea8201533977e154ae4d94aaa.tar.gz dotfiles-fc7ccd48bec1bd6ea8201533977e154ae4d94aaa.zip |
Name/point pdksh files specifically
This frees up space to implement actual ksh88/ksh93 files specifically
in future, as pdksh's feature set differs considerably
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile.d/env.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sh/profile.d/env.sh b/sh/profile.d/env.sh index ba8e7f49..f1b83919 100644 --- a/sh/profile.d/env.sh +++ b/sh/profile.d/env.sh @@ -1,8 +1,10 @@ -# If we're running some kind of ksh, export ENV to find ~/.kshrc. Bash differs -# considerably from this behaviour; it uses ENV as its startup file when it's -# invoked as sh(1), and uses .bashrc or --rcfile as its interactive startup -# file, so it doesn't need to be specified here. -if [ -n "$KSH_VERSION" ] ; then - ENV=$HOME/.kshrc +# If we're running some kind of ksh, export ENV to find a suitable startup +# file. Bash differs considerably from this behaviour; it uses ENV as its +# startup file when it's invoked as sh(1), and uses .bashrc or --rcfile as its +# interactive startup file, so it doesn't need to be specified here. +case $KSH_VERSION in + *'PD KSH '*) ENV=$HOME/.pdkshrc ;; +esac +if [ -n "$ENV" ] ; then export ENV fi |