diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-03-23 10:58:21 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 12:01:18 +0200 |
commit | 1c2d98850281ebd7eedfa726e0057566645f15c8 (patch) | |
tree | 258654d248a74304234f9a79b2682214c062beec /.zshrc | |
parent | 9ea49884ca9e1e66878b018ac5c14971a6af7364 (diff) |
Also at least check if something *could* happen
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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 |