diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-23 01:46:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-23 01:49:42 +1200 |
commit | d65e830f35698dd41626cccd07f34c2810c37abf (patch) | |
tree | 9d0ddae62b2c8828a9c6d727384c58c051b48e4c | |
parent | Merge branch 'release/v8.19.0' into develop (diff) | |
download | dotfiles-d65e830f35698dd41626cccd07f34c2810c37abf.tar.gz dotfiles-d65e830f35698dd41626cccd07f34c2810c37abf.zip |
Use explicitly nullglob Zsh patterns
-rw-r--r-- | zsh/zshrc | 2 | ||||
-rw-r--r-- | zsh/zshrc.d/keep.zsh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ HISTFILE=$HOME/.zsh_history SAVEHIST=$((1 << 12)) # Load Zsh-specific startup files -for zsh in "$HOME"/.zshrc.d/*.zsh ; do +for zsh in "$HOME"/.zshrc.d/*.zsh(N) ; do [[ -e $zsh ]] || continue source "$zsh" done diff --git a/zsh/zshrc.d/keep.zsh b/zsh/zshrc.d/keep.zsh index ddcb96e2..8a2b9449 100644 --- a/zsh/zshrc.d/keep.zsh +++ b/zsh/zshrc.d/keep.zsh @@ -141,7 +141,7 @@ EOF } # Load any existing scripts in zshkeep -for zshkeep in "${XDG_DATA_HOME:-"$HOME"/.local/share}"/zshkeep/*.zsh ; do +for zshkeep in "${XDG_DATA_HOME:-"$HOME"/.local/share}"/zshkeep/*.zsh(N) ; do [[ -e $zshkeep ]] || continue source "$zshkeep" done |