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

Re: Why are prompt expansions of %v sequences quoted in bindkey style?



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