zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

scalar parameter ref created globally in function my_git_prompt_info #893

Closed yanmxa closed 1 year ago

yanmxa commented 1 year ago

After souce the ~/.zshrc. the terminal keeps echoing the following information in my centos.

$ my_git_prompt_info:1: scalar parameter ref created globally in function my_git_prompt_info

I don't know how to fix it.

Refs: https://github.com/zsh-users/zsh-syntax-highlighting/issues/438

danielshahaf commented 1 year ago

It's a WARN_CREATE_GLOBAL warning (see the manual).

Chances are that function needs local ref added to it.

Closing since you don't even seem to use zsh-syntax-highlighting.