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() {