changeset 536:87f5a409ee83

Add zsh syntax highlighting in shell
author zegervdv <zegervdv@me.com>
date Thu, 27 Jan 2022 09:27:53 +0100
parents f10b89e9aff3
children 0cc89a031281
files .chezmoiexternal.toml dot_zshrc
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoiexternal.toml	Wed Jan 26 11:58:32 2022 +0100
+++ b/.chezmoiexternal.toml	Thu Jan 27 09:27:53 2022 +0100
@@ -34,6 +34,13 @@
   url = "https://github.com/zsh-users/zsh-autosuggestions/raw/master/zsh-autosuggestions.zsh"
   refreshPeriod = "168h"
 
+[".zsh/fast-syntax-highlighting"]
+  type = "archive"
+  url = "https://github.com/zdharma-continuum/fast-syntax-highlighting/archive/master.tar.gz"
+  exact = true
+  stripComponents = 1
+  refreshPeriod = "168h"
+
 [".zsh/completions/_fd"]
   type = "file"
   url = "https://github.com/sharkdp/fd/raw/master/contrib/completion/_fd"
--- a/dot_zshrc	Wed Jan 26 11:58:32 2022 +0100
+++ b/dot_zshrc	Thu Jan 27 09:27:53 2022 +0100
@@ -5,6 +5,8 @@
 
 source ~/.zsh/zsh-autosuggestions.zsh
 
+source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
+
 fpath=(~/.zsh/completions $fpath)
 
 export TERM=xterm-256color