aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-03-23 11:14:24 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 12:01:18 +0200
commit5f327e3009d4577b1be47c18e3608eed3344e390 (patch)
tree494f2e35181f78e6fb8d43002a2070310213236f
parent1c2d98850281ebd7eedfa726e0057566645f15c8 (diff)
Fix it real good
-rw-r--r--.zshrc15
1 files 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