From 1c2d98850281ebd7eedfa726e0057566645f15c8 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Tue, 23 Mar 2021 10:58:21 +0100 Subject: Also at least check if something *could* happen --- .zshrc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to '.zshrc') 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 -- cgit v1.1