Add syntax highlighting addon

This commit is contained in:
Paweł Płazieński 2017-11-05 13:24:38 +01:00
parent eb68312104
commit d70a3b7287
3 changed files with 10 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "zsh-syntax-highlighting"]
path = zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting

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

6
zshrc
View File

@ -612,6 +612,12 @@ for command in find wget git; \
# load zsh extended move # load zsh extended move
autoload -Uz zmv autoload -Uz zmv
#---------------------------------- Addons ------------------------------------
if [[ -d ${ZDOTDIR:-$HOME}/.zsh/zsh-syntax-highlighting ]]; then
source ${ZDOTDIR:-$HOME}/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
#---------------------------------- Machine specific -------------------------- #---------------------------------- Machine specific --------------------------
if [[ -r $HOME/.zlocal ]]; then if [[ -r $HOME/.zlocal ]]; then