Skip to content

[bug]: git chroma doesn't support correct coloring of global aliases #38

Description

@bew

Environment

OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9

Expected behavior

With this global alias:
alias -g NOOUT=">/dev/null"

When I use it in a simple command like echo foo NOOUT it shows like this (with default theme):
Screenshot_20230919_094530

Current behavior

When I use it in a git command like git commit --dry-run NOOUT the chroma identifies the alias as an invalid token and uses color 'incorrect-subtle':
Screenshot_20230919_094707

😞

Steps to reproduce

N/A?

Code snippet

No special config, the plugin is loaded with zi light /path/to/F-Sy-H-plugin

Aditional information

N/A?

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

here on github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions