Open jrowlingson opened 1 year ago
:wave: cool project! I've noticed that when re-sourcing
zsh-syntax-highlighting.zsh
the prompt will take longer each time to initialize. I happened to notice this as I was iterating on my config and repeatedly reloading.zshrc
.To reproduce:
I have the following alias that I use to reload my config:
alias rl='RELOAD=1 source ~/.zshrc'
This command will become progressively slower when the following is added to my .zshrc:
source /path_to_repo/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
If you source z-sy-h.zsh twice, syntax highlighting will be computed twice. That's by design.
:wave: cool project! I've noticed that when re-sourcing
zsh-syntax-highlighting.zsh
the prompt will take longer each time to initialize. I happened to notice this as I was iterating on my config and repeatedly reloading.zshrc
.To reproduce:
I have the following alias that I use to reload my config:
This alias will become progressively slower when the following is added to my .zshrc:
System info: