diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-30 01:32:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-30 02:09:31 +1200 |
commit | d9449c1599ee34a6dd4eac84cf209d9e9017ab69 (patch) | |
tree | 8f11f5672ed8ce83fbd52d59c24a19771d69b897 /sh/profile | |
parent | Create separate install-bash-completion target (diff) | |
download | dotfiles-d9449c1599ee34a6dd4eac84cf209d9e9017ab69.tar.gz dotfiles-d9449c1599ee34a6dd4eac84cf209d9e9017ab69.zip |
Use terser syntax for .d loop sources
Diffstat (limited to 'sh/profile')
-rw-r--r-- | sh/profile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 |