Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Where do these completions come from?
- X-seq: zsh-users 27243
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Where do these completions come from?
- Date: Fri, 15 Oct 2021 13:10:27 -0700
- Archived-at: <https://zsh.org/users/27243>
- In-reply-to: <CAN=4vMoadZvRj1=uS47Px8zDaU7DxPSkmd77205kGhh1z8NNpw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20211015184034.GA7752@gmx.de> <CAN=4vMrod0n_1PTuPooa_tCXOUuOiypcZGrOGyH6wr2YnsH6GQ@mail.gmail.com> <20211015185603.GA8362@gmx.de> <CAN=4vMoadZvRj1=uS47Px8zDaU7DxPSkmd77205kGhh1z8NNpw@mail.gmail.com>
On Fri, Oct 15, 2021 at 12:13 PM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> > Okay, understood. But why is it useful to expand hashtable names
> > in command position?
>
> I don't think it's useful.
It's not "expanding" hashtable names, it's completing parameter names
because you might want to assign to them. Having
% PA<tab>
% PATH=
would be a better example. You don't get the "=" when there are
multiple possibilities.
> I don't know why the default is what it is. I don't expect zsh
> defaults to make sense. Why is interactive_comments disabled in
> interactive shells?
Because csh didn't have interactive comments, and zsh was designed to
help college students using BSD unixen migrate from default csh to a
bourne-like shell.
> Why does prompt show hostname but not the current
> directory?
There originally wasn't a prompt escape for directory, IIRC ... and
we're back to historical usage where users were on time-shared
machinery and might need to know.
> It's all for historical reasons, I guess.
Yep, in a lot of cases dating back to how universities in the USA in
the 1990s tended to configure their servers/users.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author