Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help fix Zsh shell command prompt error or stranee
- X-seq: zsh-users 29173
- From: Budi <budikusasi@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Help fix Zsh shell command prompt error or stranee
- Date: Sun, 20 Aug 2023 17:50:39 +0700
- Archived-at: <https://zsh.org/users/29173>
- In-reply-to: <CAN=4vMpzOYiUkYUgJdS7X8puHfQoYVZk_30A=mPa68N1K=fd_Q@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZCa=FeguBvWAEMwjRkQn+mAhtJbjKaUr3Qkzfp5vPZjzQ@mail.gmail.com> <ad36472f-f2af-5962-af57-52eeab643cde@tnetconsulting.net> <CAN=4vMpzOYiUkYUgJdS7X8puHfQoYVZk_30A=mPa68N1K=fd_Q@mail.gmail.com>
PS1=$(echo -e "$DIRSB\e[41;1;37m%~\e[44;1;33m\n%%\e[m ")
DIRSB variable is none or sort of
$(echo -e "${\e[41;1;37mWORD\e[m\n\r}")
(just in tool https://github.com/abdulbadii/smart-directories-navigation)
On 8/20/23, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> On Sun, Aug 20, 2023 at 1:15 AM Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxxx>
> wrote:
>>
>> Proper use of %{ and %} sequences to keep ZLE from counting the
>> non-printing / control characters helps a lot.
>
> In the vast majority of cases one can replace %{...%} with a
> first-class %-sequence. For example, instead of %{\033[31m%} one can
> use %F{red}.
>
> Roman.
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author