[Q] how to config zsh"s rprompt"s behavior?
[Q] how to config zsh"s rprompt"s behavior?
am 23.11.2004 00:33:56 von KKramsch
Is it possible to configure zsh so that the right prompt disappears
as soon as the command line is within N > 0 characters of it? (The
default behavior is for the RHS prompt to disappear when N = 0,
i.e. when the command line "touches" the RHS prompt.)
Thanks!
Karl
--
Sent from a spam-bucket account; I check it once in a blue moon. If
you still want to e-mail me, cut out the extension from my address,
and make the obvious substitutions on what's left.
Re: [Q] how to config zsh"s rprompt"s behavior?
am 23.11.2004 01:10:08 von Geoff Wing
KKramsch typed:
: Is it possible to configure zsh so that the right prompt disappears
: as soon as the command line is within N > 0 characters of it? (The
: default behavior is for the RHS prompt to disappear when N = 0,
: i.e. when the command line "touches" the RHS prompt.)
No, this is hardcoded. You would need to change the calculation in
zle_refresh.c around line 568 and recompile.
Regards,
Geoff
Re: [Q] how to config zsh"s rprompt"s behavior?
am 23.11.2004 10:38:48 von Stephane CHAZELAS
2004-11-22, 23:33(+00), KKramsch:
[...]
> Is it possible to configure zsh so that the right prompt disappears
> as soon as the command line is within N > 0 characters of it? (The
> default behavior is for the RHS prompt to disappear when N = 0,
> i.e. when the command line "touches" the RHS prompt.)
[...]
Simply add spaces to RPS1:
instead of
RPS1=%T
use
RPS1=' %T'
--
Stephane
Re: [Q] how to config zsh"s rprompt"s behavior?
am 23.11.2004 15:05:56 von KKramsch
In Stephane CHAZELAS writes:
>2004-11-22, 23:33(+00), KKramsch:
>[...]
>> Is it possible to configure zsh so that the right prompt disappears
>> as soon as the command line is within N > 0 characters of it? (The
>> default behavior is for the RHS prompt to disappear when N = 0,
>> i.e. when the command line "touches" the RHS prompt.)
>[...]
>Simply add spaces to RPS1:
DOH!
Of course.
Now, why didn't I think of that?!
Thanks!
Karl
--
Sent from a spam-bucket account; I check it once in a blue moon. If
you still want to e-mail me, cut out the extension from my address,
and make the obvious substitutions on what's left.