Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why are prompt expansions of %v sequences quoted in bindkey style?
- X-seq: zsh-users 29548
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Marlon Richert <marlon.richert@xxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Why are prompt expansions of %v sequences quoted in bindkey style?
- Date: Tue, 23 Jan 2024 11:15:43 -0800
- Archived-at: <https://zsh.org/users/29548>
- In-reply-to: <93F17F14-8DF3-4D02-875F-A7BAE9BA6427@gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAN=4vMoUnO=v3tWyY3+4ixMEfu_8_bC+c_KEOVCoLK7QH4Kogw@mail.gmail.com> <93F17F14-8DF3-4D02-875F-A7BAE9BA6427@gmail.com>
On Tue, Jan 23, 2024 at 10:44 AM Marlon Richert
<marlon.richert@xxxxxxxxx> wrote:
>
> However, the quoting seems to make it impossible to use $psvar for anything involving control characters.
That's correct. Anything involving control characters would also
require %{...%} or %G to specify the occupied screen width.
> Is there no way to work around this?
As Roman mentioned, the usual way is to use precmd to update prompt values.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author