zshrc: add syntax highlighting
This commit is contained in:
parent
b447eea7b1
commit
0353bdd96c
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue