aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:54:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:57:39 +1300
commit09bc29e2dbeadc811491f555e71397dfa0264704 (patch)
treeaf5d717ab5b195024b90f42fa83794090be2b78f /sh/profile
parentChange syntax of ksh prompt func declaration (diff)
downloaddotfiles-09bc29e2dbeadc811491f555e71397dfa0264704.tar.gz
dotfiles-09bc29e2dbeadc811491f555e71397dfa0264704.zip
Change tack; force ENV if the file exists
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile b/sh/profile
index fd87b8fa..5d9c80bf 100644
--- a/sh/profile
+++ b/sh/profile
@@ -7,8 +7,8 @@ for sh in "$HOME"/.profile.d/*.sh ; do
done
unset -v sh
-# If ENV is still unset, and ~/.shinit exists, use that
-if [ -z "$ENV" ] && [ -f "$HOME"/.shinit ] ; then
+# If ~/.shinit exists, set ENV to that
+if [ -f "$HOME"/.shinit ] ; then
ENV=$HOME/.shinit
export ENV
fi