addet syntax highlighting as a submodule

This commit is contained in:
pika 2024-09-11 21:54:29 +02:00
parent 0177fa571f
commit 2d647e8ca9
3 changed files with 6 additions and 2 deletions

4
.gitmodules vendored
View file

@ -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

@ -0,0 +1 @@
Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0

3
.zshrc
View file

@ -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"