Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Help fix Zsh shell command prompt error or stranee



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