aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
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