ENH use zsh syntax highlighters directly
This commit is contained in:
parent
de8e5ee7d4
commit
2442490f77
|
@ -19,3 +19,7 @@
|
|||
type: git-repo
|
||||
url: https://github.com/ndwarshuis/universal-conky.git
|
||||
{{- 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
|
||||
## --------------------------------------------------
|
||||
for hlpath in zsh/plugins/zsh-syntax-highlighting zsh-syntax-highlighting; do
|
||||
if [[ -e "/usr/share/$hlpath/zsh-syntax-highlighting.zsh" ]]; then
|
||||
. "/usr/share/$hlpath/zsh-syntax-highlighting.zsh"
|
||||
break
|
||||
fi
|
||||
done
|
||||
hlpath="$XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
if [[ -e "$hlpath" ]]; then
|
||||
. "$hlpath"
|
||||
fi
|
||||
|
||||
## --------------------------------------------------
|
||||
# history
|
||||
|
|
Loading…
Reference in New Issue