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

Re: Official plugin manager?

On Fri, Jan 3, 2020 at 11:07 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Roman Perepelitsa wrote on Fri, 03 Jan 2020 21:51 +00:00:
> > This is just my personal opinion that I don't hold very strongly and
> > my voice obviously carries little weight here. I think zshrc
> > recommended by zsh should be very conservative. It should enable users
> > to get started (basic keys must work,
> Debian does something like this:
> https://salsa.debian.org/debian/zsh/blob/debian/debian/newuser.zshrc.recommended
> https://salsa.debian.org/debian/zsh/blob/debian/debian/zshrc

This looks along the lines of what I was suggesting and what would
make my life easier when I was switching to zsh.

I'd suggest a few minor changes.

- Inline the prompt definition instead of using promptinit. This makes
it much easier for users to customize prompt. Abstractions are a
serious barrier for beginners.
- Move keybindings (everything, really) from the global zshrc to the
user and remove fancy indirection from there as well (don't use
terminfo and don't define auxiliary assoc arrays). This will show
users how to define bindings. Also get rid of zle-line-begin/end hooks
and stop changing terminal mode. Do something like this instead:
https://www.reddit.com/r/zsh/comments/eblqvq/d/fb7337q/. This is
easier to understand and more robust.
- More comments explaining what things do and where to find docs.
E.g., comments above bindings should say which key is being bound and
what the widget does. It should also explain how to figure out escape
codes for different keys and where to find the list of builtin
- Maybe fewer completion styles. Seems like too much but maybe they
are really important, I don't know.

One meta observation based on my experience doing the same with
powerlevel10k. 90%+ of users won't ever open the default config file.
90% of those that do, won't read any documentation that isn't included
in the file itself.


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