From 8a2785041c4a77b4995b93be9d7e18bd9234b5f1 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 21 Oct 2020 15:09:58 -0400 Subject: Add zsh syntax highlighting --- .gitmodules | 3 +++ zsh/.zsh/fast-syntax-highlighting | 1 + zsh/.zshrc | 6 ++++++ 3 files changed, 10 insertions(+) create mode 160000 zsh/.zsh/fast-syntax-highlighting diff --git a/.gitmodules b/.gitmodules index dee7f1c..2f8023f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "zsh/zsh/pure"] path = zsh/.zsh/pure url = https://github.com/sindresorhus/pure.git +[submodule "zsh/.zsh/fast-syntax-highlighting"] + path = zsh/.zsh/fast-syntax-highlighting + url = https://github.com/zdharma/fast-syntax-highlighting diff --git a/zsh/.zsh/fast-syntax-highlighting b/zsh/.zsh/fast-syntax-highlighting new file mode 160000 index 0000000..a47b508 --- /dev/null +++ b/zsh/.zsh/fast-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit a47b5088636c3678c7baa22710d10b0c45bc9265 diff --git a/zsh/.zshrc b/zsh/.zshrc index 1ca1e22..cb0a9da 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -30,4 +30,10 @@ prompt pure alias ls="ls --color" +source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh +if [[ ! -f ~/.zsh/fast-syntax-highlighting/current_theme.zsh ]]; then + fpath+=$HOME/.zsh/fast-syntax-highlighting + fast-theme clean +fi + [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local -- cgit v1.2.3