addet syntax highlighting for init

This commit is contained in:
pika 2024-09-11 22:15:13 +02:00
parent 2d647e8ca9
commit 1b216d4cfb

12
.zshrc
View file

@ -75,11 +75,19 @@ _init (){
if command_exists zoxide; then if command_exists zoxide; then
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
fi fi
# ─< environment variables for zsh >──────────────────────────────────────────────────────
local zconf="$HOME/.zsh" local zconf="$HOME/.zsh"
local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh" local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh"
local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh" local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh"
[[ -f "$zAutosg" ]] && local _pluginlist=("$zAutosg" "$zSynthl")
. $zAutosg
# ─< init plugis >────────────────────────────────────────────────────────────────────────
for zPlug in "${_pluginlist[@]}"; do
[[ -f "$zPlug" ]] &&
. $zPlug
done
p_has() { p_has() {
if ! command_exists has; then if ! command_exists has; then
inst_has() { inst_has() {