zshrc: add syntax highlighting

This commit is contained in:
Cynthia Foxwell 2023-07-27 21:52:07 -06:00
parent b447eea7b1
commit 0353bdd96c

View file

@ -27,6 +27,12 @@ if [[ $CONF_ENABLEAC -eq 1 ]]; then
source "$HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" source "$HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
fi 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 # Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
HISTSIZE=10000 HISTSIZE=10000
@ -242,3 +248,5 @@ if [[ $CONF_FORTUNE -eq 1 ]]; then
fortune $CONF_FORTUNE_PATH fortune $CONF_FORTUNE_PATH
echo echo
fi fi
[[ $CONF_ENABLESH -eq 1 ]] && source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh