ENH use zsh syntax highlighters directly

This commit is contained in:
Nathan Dwarshuis 2022-08-02 23:55:59 -04:00
parent de8e5ee7d4
commit 2442490f77
2 changed files with 8 additions and 6 deletions

View File

@ -19,3 +19,7 @@
type: git-repo type: git-repo
url: https://github.com/ndwarshuis/universal-conky.git url: https://github.com/ndwarshuis/universal-conky.git
{{- end }} {{- end }}
.local/share/zsh/plugins/zsh-syntax-highlighting:
type: git-repo
url: https://github.com/zsh-users/zsh-syntax-highlighting.git
clone.args: --branch 0.7.1

View File

@ -48,12 +48,10 @@ zstyle ':completion:*:(ssh|scp|rsync):*:hosts' ignored-patterns '*(.|:)*' loopba
## -------------------------------------------------- ## --------------------------------------------------
# syntax highlighting a la fish # syntax highlighting a la fish
## -------------------------------------------------- ## --------------------------------------------------
for hlpath in zsh/plugins/zsh-syntax-highlighting zsh-syntax-highlighting; do hlpath="$XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
if [[ -e "/usr/share/$hlpath/zsh-syntax-highlighting.zsh" ]]; then if [[ -e "$hlpath" ]]; then
. "/usr/share/$hlpath/zsh-syntax-highlighting.zsh" . "$hlpath"
break
fi fi
done
## -------------------------------------------------- ## --------------------------------------------------
# history # history