aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-03-23 10:58:21 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 12:01:18 +0200
commit1c2d98850281ebd7eedfa726e0057566645f15c8 (patch)
tree258654d248a74304234f9a79b2682214c062beec /.zshrc
parent9ea49884ca9e1e66878b018ac5c14971a6af7364 (diff)
Also at least check if something *could* happen
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc19
1 files changed, 11 insertions, 8 deletions
diff --git a/.zshrc b/.zshrc
index 7e0e10c..59a9a68 100644
--- a/.zshrc
+++ b/.zshrc
@@ -172,15 +172,18 @@ gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
# Apply bundles
-for bundle in "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/"*;
-do
- if [[ "$bundle" == "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/*" ]]
- then
- [ $DEBUG_DOTFILES ] && echo "No vendor libraries"
- fi
+if [[ -d "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh" ]]
+then
+ for bundle in "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/"*;
+ do
+ if [[ "$bundle" == "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/*" ]]
+ then
+ [ $DEBUG_DOTFILES ] && echo "No vendor libraries"
+ fi
- source "$bundle"
-done
+ source "$bundle"
+ done
+fi
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform