diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 17:22:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 17:22:56 +1200 |
commit | f1fb2e6cd9c774e8f39ab5e8f7896585a56711c2 (patch) | |
tree | 7c32d48259a5a0c9abbced54610edde8e38bc852 /zsh | |
parent | Correct typo in .bashrc (diff) | |
download | dotfiles-f1fb2e6cd9c774e8f39ab5e8f7896585a56711c2.tar.gz dotfiles-f1fb2e6cd9c774e8f39ab5e8f7896585a56711c2.zip |
Break sh noglob guard into two lines for clarity
They're nicer to read this way.
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/zshrc | 3 | ||||
-rw-r--r-- | zsh/zshrc.d/keep.zsh | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -17,6 +17,7 @@ SAVEHIST=$((1 << 12)) # Load Zsh-specific startup files for sh in "$HOME"/.zshrc.d/*.zsh ; do - [[ -e $sh ]] && source "$sh" + [[ -e $sh ]] || continue + source "$sh" done unset -v sh diff --git a/zsh/zshrc.d/keep.zsh b/zsh/zshrc.d/keep.zsh index 8dfc5f29..59696301 100644 --- a/zsh/zshrc.d/keep.zsh +++ b/zsh/zshrc.d/keep.zsh @@ -142,6 +142,7 @@ EOF # Load any existing scripts in zshkeep for zshkeep in "${ZSHKEEP:-"$HOME"/.zshkeep.d}"/*.zsh(N) ; do - [[ -e $zshkeep ]] && source "$zshkeep" + [[ -e $zshkeep ]] || continue + source "$zshkeep" done unset -v zshkeep |