Skip to content

Repeating source zsh-syntax-highlighting.zsh becomes slow #906

Open
@jrowlingson

Description

@jrowlingson

👋 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 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:

zsh-syntax-highlighting#b2c910a
$ zsh --version
zsh 5.8 (x86_64-ubuntu-linux-gnu)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions