From 5f327e3009d4577b1be47c18e3608eed3344e390 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 23 Mar 2021 11:14:24 +0100
Subject: Fix it real good
---
.zshrc | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/.zshrc b/.zshrc
index 59a9a68..d1f3315 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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
--
cgit v1.1