diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2020-10-21 15:09:58 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2020-10-21 15:09:58 -0400 |
commit | 8a2785041c4a77b4995b93be9d7e18bd9234b5f1 (patch) | |
tree | bc09bd6c48fe2d1fcedda2db5d2e8eecc547a3bb | |
parent | bc577ddef78c4723b90194dd1489c16e63d6d7d4 (diff) |
Add zsh syntax highlighting
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | zsh/.zsh/fast-syntax-highlighting | 0 | ||||
-rw-r--r-- | zsh/.zshrc | 6 |
3 files changed, 9 insertions, 0 deletions
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 +Subproject a47b5088636c3678c7baa22710d10b0c45bc926 @@ -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 |