From 1b216d4cfb8eef8de9475cbd4625800e25bae8d2 Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 11 Sep 2024 22:15:13 +0200 Subject: [PATCH] addet syntax highlighting for init --- .zshrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 0685418..8cba04f 100644 --- a/.zshrc +++ b/.zshrc @@ -75,11 +75,19 @@ _init (){ if command_exists zoxide; then eval "$(zoxide init zsh)" fi + +# ─< environment variables for zsh >────────────────────────────────────────────────────── local zconf="$HOME/.zsh" local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh" local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh" - [[ -f "$zAutosg" ]] && - . $zAutosg + local _pluginlist=("$zAutosg" "$zSynthl") + +# ─< init plugis >──────────────────────────────────────────────────────────────────────── + for zPlug in "${_pluginlist[@]}"; do + [[ -f "$zPlug" ]] && + . $zPlug + done + p_has() { if ! command_exists has; then inst_has() {