-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeating source zsh-syntax-highlighting.zsh becomes slow #906
Comments
👋 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:
```zsh
alias rl='RELOAD=1 source ~/.zshrc'
```
This command will become progressively slower when the following is added to my .zshrc:
```zsh
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.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 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:
source /path_to_repo/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
System info:
The text was updated successfully, but these errors were encountered: