Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Color in completions
- X-seq: zsh-users 21204
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Color in completions
- Date: Fri, 29 Jan 2016 14:45:46 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=ZEKBi4MiGl2jRveLCuQnSJ2PahdvyhhUjQ/6rh2xXm8=; b=Nfcew14mXjsuuglBR7qankhCj0Fa3QaAbw72duahevMshPZBFImTXmjCOyl3oWBJUc QQMgmXnKiT5oHZ08/CUIZhayu9l5dYqXoxQmn/xjm4ngw1U1HwNYEcmep7keMJ13mcvM EX/iGAFwhWw9d3eIogUl2974KlPErgiw8h0e272fCta0cnUB2JLjtIl4PXOIPPIT004n DiOcIN4DjtQf+ZL87j7uu0k2L98aBMFGsufr79W0VkVdv3Y0ieCMB0jMV3B0ILGWX1Nk geFuhXWBx5FcLOzLPK+/i1U/7ywi4TrMBEtQ5c+lyXfzzkgbwz5oQ8DAn6RBNv+YnfEF 3Wfg==
- In-reply-to: <CAKc7PVDSZJ2ZijK1siwRA-8AV0H4ROeEyS26i5DWeFJT6SO24w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDSZJ2ZijK1siwRA-8AV0H4ROeEyS26i5DWeFJT6SO24w@mail.gmail.com>
On Jan 29, 2:13pm, Sebastian Gniazdowski wrote:
}
} In my script I complete Github's paths, like "psprint/plugin-name".
} Would like to give color to the two components of the path.
You can get color in completion listings with the complist module,
see "man zshmodules" or "info zsh 'The zsh/complist Module'". In
particular this reference to $ZLS_COLORS:
The leading-equals form also allows different parts of the displayed
strings to be colored differently. For this, the pattern has to use the
`(#b)' globbing flag and pairs of parentheses surrounding the parts of
the strings that are to be colored differently. ...
To color what's inserted onto the command line by completion, you
have to set the region_highlight array, which is what z-sy-h does.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author