aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-30 01:32:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-30 02:09:31 +1200
commitd9449c1599ee34a6dd4eac84cf209d9e9017ab69 (patch)
tree8f11f5672ed8ce83fbd52d59c24a19771d69b897 /sh/profile
parentCreate separate install-bash-completion target (diff)
downloaddotfiles-d9449c1599ee34a6dd4eac84cf209d9e9017ab69.tar.gz
dotfiles-d9449c1599ee34a6dd4eac84cf209d9e9017ab69.zip
Use terser syntax for .d loop sources
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile13
1 files changed, 5 insertions, 8 deletions
diff --git a/sh/profile b/sh/profile
index 816fe78b..e9e974e0 100644
--- a/sh/profile
+++ b/sh/profile
@@ -4,11 +4,8 @@ if [ -d "$HOME"/.local/bin ] ; then
fi
# Load all supplementary scripts in ~/.profile.d
-if [ -d "$HOME"/.profile.d ] ; then
- for profile in "$HOME"/.profile.d/*.sh ; do
- if [ -e "$profile" ] ; then
- . "$profile"
- fi
- done
- unset -v profile
-fi
+for profile in "$HOME"/.profile.d/*.sh ; do
+ [ -e "$profile" ] || continue
+ . "$profile"
+done
+unset -v profile