You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my addition to zsh-syntax-highlighting/highlighters/regexp/regexp-highlighter.zsh imediately after the line typeset -gA ZSH_HIGHLIGHT_REGEXP:
# Highlight 'ls' and 'cd'
ZSH_HIGHLIGHT_REGEXP+=('(^| )(ls|cd)($| )' 'fg=green')
Everytime the regex is triggered for the 1st time after login, the terminal prints things. The 2nd time and beyond, it works fine
Last login: Mon Jan 22 19:28:18 on ttys000
▸ ~ ls
_zsh_highlight_regexp_highlighter_loop:6: array parameter match created globally in function _zsh_highlight_regexp_highlighter_loop
_zsh_highlight_regexp_highlighter_loop:6: array parameter mbegin created globally in function _zsh_highlight_regexp_highlighter_loop
_zsh_highlight_regexp_highlighter_loop:6: array parameter mend created globally in function _zsh_highlight_regexp_highlighter_loop
▸ ~ ls
Applications Downloads Movies Public pymel.log vscode
Desktop GoogleDrive Music VirtualBox VMs safe-rm.sh vscode.zip
Documents Library Pictures anaconda2 settings.json xgen
▸ ~
This behavior repeats if your logout and login again.
The text was updated successfully, but these errors were encountered:
Leedehai
changed the title
_zsh_highlight_regexp_highlighter_loop prints things
_zsh_highlight_regexp_highlighter_loop prints things when regex highlighting is triggered for the first time after login:
Jan 23, 2018
Leedehai
changed the title
_zsh_highlight_regexp_highlighter_loop prints things when regex highlighting is triggered for the first time after login:
Highlighter prints things when regex highlighting is triggered for the first time after login:
Jan 23, 2018
Leedehai
changed the title
Highlighter prints things when regex highlighting is triggered for the first time after login:
Highlighter prints things when regex highlighting is triggered for the 1st time after login:
Jan 23, 2018
phy1729
added a commit
to phy1729/zsh-syntax-highlighting
that referenced
this issue
Jan 23, 2018
Whoops, sorry I must have missed the message at that time! It was definitely not my intention to be rude by not responding. I stumbled across this today when I was googling and was surprised it was me who filed this bug..
Yes, it fixed it. Finally I can remove the comment sign in ~/.zshrc to enable this plugin! zsh-syntax-highlighting was hidden after a comment sign for more than 2 years :)
This is my addition to
zsh-syntax-highlighting/highlighters/regexp/regexp-highlighter.zsh
imediately after the linetypeset -gA ZSH_HIGHLIGHT_REGEXP
:Everytime the regex is triggered for the 1st time after login, the terminal prints things. The 2nd time and beyond, it works fine
This behavior repeats if your logout and login again.
The text was updated successfully, but these errors were encountered: