diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 11:20:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 11:22:27 +1200 |
commit | 14062a6b6748241e84bae7fe2342ba5c81cc4e6b (patch) | |
tree | 9171ce3e97ae7d3fdd00378177dc39befb5d767e /bash/bash_profile | |
parent | Arrange EDITOR/VISUAL in a more typical way (diff) | |
download | dotfiles-14062a6b6748241e84bae7fe2342ba5c81cc4e6b.tar.gz dotfiles-14062a6b6748241e84bae7fe2342ba5c81cc4e6b.zip |
Use consistent syntax for sh source loops
Diffstat (limited to 'bash/bash_profile')
-rw-r--r-- | bash/bash_profile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index 9d2fd76c..db1d9bc8 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -14,13 +14,10 @@ elif ((BASH_VERSINFO[0] == 2)) && fi # Load any supplementary scripts -if [[ -d $HOME/.bash_profile.d ]] ; then - for bash_profile in "$HOME"/.bash_profile.d/*.bash ; do - [[ -e $bash_profile ]] || continue - source "$bash_profile" - done - unset -v bash_profile -fi +for sh in "$HOME"/.bash_profile.d/*.bash ; do + [[ -e $sh ]] && source "$sh" +done +unset -v sh # If ~/.bashrc exists, source that too; the test for interactivity is in there if [[ -f $HOME/.bashrc ]] ; then |