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 /sh/shrc | |
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 'sh/shrc')
-rw-r--r-- | sh/shrc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -6,8 +6,7 @@ esac # Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells # like bash will have their own functions -for shrc in "$HOME"/.shrc.d/*.sh ; do - [ -e "$shrc" ] || continue - . "$shrc" +for sh in "$HOME"/.shrc.d/*.sh ; do + [ -e "$sh" ] && . "$sh" done -unset -v shrc +unset -v sh |