Skip to content

different colors for < and > redirectionΒ #831

@400thecat

Description

@400thecat

I feel there is huge difference between < and <. One is harmless and reads from file, the other is dangerous and overwrites file.

I would like to have different colors for each to distinguish them. Unfortunately, zsh-syntax-highlighting treats them as same:

164:  [[ $1 == (<0-9>|)(\<|\>)* ]] && [[ $1 != (\<|\>)$'\x28'* ]]

Can you please implement this, or at least suggest what changes to make?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions