Skip to content

different colors for < and > redirection #831

Open
@400thecat

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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