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

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

Arseny Maslennikov wrote on Wed, 14 Apr 2021 15:30 +00:00:
> 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.

Well, the «vcs_info $user_context» usage does exist.  Perhaps a prompt
theme could use that and then set appropriate styles…

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