ENH use zsh syntax highlighters directly
This commit is contained in:
parent
de8e5ee7d4
commit
2442490f77
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue