zshrc: add syntax highlighting

This commit is contained in:
Cynthia Foxwell 2023-07-27 21:52:07 -06:00
parent b447eea7b1
commit 0353bdd96c
1 changed files with 8 additions and 0 deletions

View File

@ -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