Skip to content

[Feature Request] Allow us to add own custom colours #3

@gusbemacbe

Description

@gusbemacbe

Hello,

Give a look at the example of ohmyzsh/plugins/web-search and go to the end of README where ZSH_WEB_SEARCH_ENGINES allows us to add other search engine contexts.

I would do like:

autoload colors
colors

c=(
    skyblue_hex '%F{#87afdf}'
    piltover_hex '%F{#858569}'

    skyblue_ansi '�[38;2;15;161;166m'
    piltover_ansi '�[38;2;133;133;105m'
)

And it looks like:

echo $c[red] Red colour $c[default]and $c[piltover]Piltover‘s colour. $c[reset]
  • Mix of zpm-zsh's colors with colour functions:
    image

  • Using ZSH's colour hexadecimal codes, but it requires print -P. And using ANSI RGB code does not require print -P:

    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions