From 2d647e8ca9e012d3a36c6ebfa02e74121abb512b Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 11 Sep 2024 21:54:29 +0200 Subject: [PATCH] addet syntax highlighting as a submodule --- .gitmodules | 4 ++++ .zsh/syntax-highlighting | 1 + .zshrc | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 160000 .zsh/syntax-highlighting diff --git a/.gitmodules b/.gitmodules index 88e01ca..3f7a197 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,7 @@ path = .zsh/autosuggestions url = https://github.com/zsh-users/zsh-autosuggestions branch = master +[submodule ".zsh/syntax-highlighting"] + path = .zsh/syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting + branch = master diff --git a/.zsh/syntax-highlighting b/.zsh/syntax-highlighting new file mode 160000 index 0000000..e0165ea --- /dev/null +++ b/.zsh/syntax-highlighting @@ -0,0 +1 @@ +Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0 diff --git a/.zshrc b/.zshrc index d07e34c..0685418 100644 --- a/.zshrc +++ b/.zshrc @@ -77,6 +77,7 @@ _init (){ fi local zconf="$HOME/.zsh" local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh" + local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh" [[ -f "$zAutosg" ]] && . $zAutosg p_has() { @@ -420,7 +421,6 @@ get_packager() { . /etc/os-release case "$ID" in ubuntu | debian | pop) - . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh if command_exists nala; then search="nala search" install="nala install --assume-yes" @@ -470,7 +470,6 @@ get_packager() { alias search="dnf search" ;; alpine) - . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh install="apk add" update="apk update" upgrade="apk upgrade"