Skip to content
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

Shell parameter $HOME is highlighted as an unknown-token. #962

Open
WayneNoschang opened this issue Jan 4, 2025 · 1 comment
Open

Shell parameter $HOME is highlighted as an unknown-token. #962

WayneNoschang opened this issue Jan 4, 2025 · 1 comment

Comments

@WayneNoschang
Copy link

When the AUTO_CD option is set, and the first input word is a parameter...

  • Parameters with a value of a directory are highlighted by ZSH_HIGHLIGHT_STYLES[autodirectory]
  • However, the HOME parameter is highlighted by ZSH_HIGHLIGHT_STYLES[unknown-token]

I expected HOME to have the same syntax highlighting as other parameters with a directory value (e.g. PWD, OLD_PWD, etc.).

Is this the same for everyone else?

The attribute of HOME is a scalar-export-special, (see echo $parameters[HOME]).

@danielshahaf
Copy link
Member

danielshahaf commented Jan 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants