commit 35438a07a63cdf2a68aca3161ea0a25aa999d786 parent 48a5149047ddddef57e2d9b5001ff0db94f4209c Author: Daniel Moch <daniel@danielmoch.com> Date: Sat, 5 Oct 2019 07:16:27 -0400 sh: Fix rc sourcing Diffstat:
M | .profile | | | 2 | +- |
M | .profile.d/env.sh | | | 7 | +++++-- |
M | .shrc | | | 2 | +- |
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/.profile b/.profile @@ -19,7 +19,7 @@ __addpath () fi } -for file in .profile.d/*.sh +for file in "$HOME"/.profile.d/*.sh do [ -r $file ] && . $file done diff --git a/.profile.d/env.sh b/.profile.d/env.sh @@ -1,2 +1,5 @@ -ENV=.shrc -export ENV +if [ -r "$HOME/.shrc" ] +then + ENV="$HOME/.shrc" + export ENV +fi diff --git a/.shrc b/.shrc @@ -3,7 +3,7 @@ # printf "\033]0;$LOGNAME@$HOSTNAME\007" -for file in .shrc.d/*.sh +for file in "$HOME"/.shrc.d/*.sh do [ -r $file ] && . $file done