diff --git a/common/.zshrc b/common/.zshrc index 93a0a2e..1ac902c 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -27,6 +27,12 @@ if [[ $CONF_ENABLEAC -eq 1 ]]; then source "$HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" fi +if [[ $CONF_ENABLESH -eq 1 ]]; then + if [[ ! -d "$HOME/.zsh/zsh-syntax-highlighting" ]]; then + git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh/zsh-syntax-highlighting" + fi +fi + # Lines configured by zsh-newuser-install HISTFILE=~/.zsh_history HISTSIZE=10000 @@ -242,3 +248,5 @@ if [[ $CONF_FORTUNE -eq 1 ]]; then fortune $CONF_FORTUNE_PATH echo fi + +[[ $CONF_ENABLESH -eq 1 ]] && source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh