[zsh] set my syntax theme automatically

This commit is contained in:
Dmytro Meleshko 2021-01-03 19:24:18 +02:00
parent ed7835b342
commit cc28755977

View file

@ -75,6 +75,9 @@ FAST_WORK_DIR="$ZSH_CACHE_DIR"
if [[ "$TERM" != "linux" ]]; then
_plugin fast-syntax-highlighting 'zdharma/fast-syntax-highlighting' "$_checkout_latest_version"
set-my-syntax-theme() { fast-theme "$ZSH_DOTFILES/my-syntax-theme.ini" "$@"; }
if [[ "$FAST_THEME_NAME" != "my-syntax-theme" && -z "$DOTFILES_DISABLE_MY_COLORSCHEME" ]]; then
set-my-syntax-theme
fi
fi
unset _checkout_latest_version