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

Re: [RFC][PATCH] `newuser` prompt theme

On Wed, Apr 14, 2021 at 04:17:02PM +0300, Marlon wrote:
> > Why shouldn't the
> > theme just advise people to set the vcs_info directly?
> Because it’s a theme? If people wanted to style their vcs_info directly, then why would they use a theme? Conversely, VCS info is the number one thing that new users want to add to their prompt. I don’t think it’s unreasonable to expect that to be included out of the box.

This has not been brought up in this thread, but prompt themes do accept
command line arguments. So we could have «prompt marlon» which does not
include vcs_info in the prompt for the users that want a more responsive
prompt or use rotational storage, and «prompt marlon --vcs-info» which does.

vcs_info is designed just so it is configured separately with its own
zstyles, though; IMHO it's unfair for a prompt theme to modify that
configuration, but OK to make a decision to use/unuse it.

> Nearly all of 3rd-party prompt themes in the wild include at least Git info.

They do that mainly to advertise to people that zsh + vcs_info can do
this, and to encourage them to use their shell creatively.

Attachment: signature.asc
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author