aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-23 01:46:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-23 01:49:42 +1200
commitd65e830f35698dd41626cccd07f34c2810c37abf (patch)
tree9d0ddae62b2c8828a9c6d727384c58c051b48e4c
parentMerge branch 'release/v8.19.0' into develop (diff)
downloaddotfiles-d65e830f35698dd41626cccd07f34c2810c37abf.tar.gz
dotfiles-d65e830f35698dd41626cccd07f34c2810c37abf.zip
Use explicitly nullglob Zsh patterns
-rw-r--r--zsh/zshrc2
-rw-r--r--zsh/zshrc.d/keep.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 0aac527e..6d3239eb 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -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