zsh-syntax-highlighting icon indicating copy to clipboard operation
zsh-syntax-highlighting copied to clipboard

Weird colors with `ggpush` Git alias command.

Open sergiop opened this issue 4 years ago • 3 comments

Hi, I have a strange issue with ggpush Git alias command. Can someone help me to fix this?

Screenshot 2021-07-23 at 16 33 46

sergiop avatar Jul 23 '21 14:07 sergiop

What are the value of $ZSH_HIGHLIGHT_PATCHLEVEL and the definition of the alias?

danielshahaf avatar Jul 24 '21 04:07 danielshahaf

The alias is defined with:

ggpush='git push origin "$(git_current_branch)"'

How can I get the value of $ZSH_HIGHLIGHT_PATCHLEVEL? Sorry, I don't know much about it.

sergiop avatar Jul 25 '21 22:07 sergiop

Just print/echo it.

Could you provide minimal reproduction instructions under zsh -f without external dependencies? If not: what file is the alias defined in?

danielshahaf avatar Jul 26 '21 17:07 danielshahaf