aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-18 23:56:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-18 23:56:22 +1300
commit35433c0f2087eacaa0b40841121fe8594e4e22be (patch)
treece0e0b8f19d2af672c8d2ada38c18bf930216c3d /ksh
parentMove TMUX_SHLVL trick into shrc.d (diff)
downloaddotfiles-35433c0f2087eacaa0b40841121fe8594e4e22be.tar.gz
dotfiles-35433c0f2087eacaa0b40841121fe8594e4e22be.zip
Defer kshrc loading until after shrc all loaded
Diffstat (limited to 'ksh')
-rw-r--r--ksh/shrc.d/ksh.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh
index 0045a470..106c898f 100644
--- a/ksh/shrc.d/ksh.sh
+++ b/ksh/shrc.d/ksh.sh
@@ -30,8 +30,5 @@ fi
# If KSH_ENV isn't already set, set it
[ -n "$KSH_ENV" ] || KSH_ENV=$HOME/.kshrc
-# Check the file named in KSH_ENV exists
-[ -f "$KSH_ENV" ] || return
-
-# Source it (finally)
-. "$KSH_ENV"
+# If ENV_EXT isn't already set, set it
+[ -n "$ENV_EXT" ] || ENV_EXT=$KSH_ENV