From d70a3b7287c9e3c34078dba0c038693fb977c6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Sun, 5 Nov 2017 13:24:38 +0100 Subject: [PATCH] Add syntax highlighting addon --- .gitmodules | 3 +++ zsh-syntax-highlighting | 1 + zshrc | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 .gitmodules create mode 160000 zsh-syntax-highlighting diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5c8a7dc --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "zsh-syntax-highlighting"] + path = zsh-syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting diff --git a/zsh-syntax-highlighting b/zsh-syntax-highlighting new file mode 160000 index 0000000..a33c72e --- /dev/null +++ b/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit a33c72e8389b3d984d25fd556d86878777c76571 diff --git a/zshrc b/zshrc index bb9ce23..ca93d5f 100644 --- a/zshrc +++ b/zshrc @@ -612,6 +612,12 @@ for command in find wget git; \ # load zsh extended move 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 -------------------------- if [[ -r $HOME/.zlocal ]]; then