diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-03-23 11:14:24 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 12:01:18 +0200 |
commit | 5f327e3009d4577b1be47c18e3608eed3344e390 (patch) | |
tree | 494f2e35181f78e6fb8d43002a2070310213236f | |
parent | 1c2d98850281ebd7eedfa726e0057566645f15c8 (diff) |
Fix it real good
-rw-r--r-- | .zshrc | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -174,15 +174,20 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) # Apply bundles if [[ -d "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh" ]] then - for bundle in "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/"*; + pushd "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh" > /dev/null + + sources=( + "feature-syntax-highlighting/zsh-syntax-highlighting.zsh" + ) + + for bundle in "${sources[@]}" do - if [[ "$bundle" == "${XDG_CONFIG_DIR:-"${HOME}/.config"}/shell/vendor/zsh/*" ]] - then - [ $DEBUG_DOTFILES ] && echo "No vendor libraries" - fi + [[ ! -f "$bundle" ]] && continue source "$bundle" done + + popd > /dev/null fi autoload -U +X bashcompinit && bashcompinit |