diff options
Diffstat (limited to 'sh/profile')
-rw-r--r-- | sh/profile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -4,11 +4,10 @@ if [ -d "$HOME"/.local/bin ] ; then fi # Load all supplementary scripts in ~/.profile.d -for profile in "$HOME"/.profile.d/*.sh ; do - [ -e "$profile" ] || continue - . "$profile" +for sh in "$HOME"/.profile.d/*.sh ; do + [ -e "$sh" ] && . "$sh" done -unset -v profile +unset -v sh # If ENV is unset after running those scripts and ~/.shrc exists, set it as ENV if [ -z "$ENV" ] && [ -f "$HOME"/.shrc ] ; then |