Zsh Mailing List Archive
Messages sorted by:
Re: cd - not expanding to dirs
- X-seq: zsh-users 17420
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: cd - not expanding to dirs
- Date: Mon, 19 Nov 2012 19:48:06 -0800
- In-reply-to: <XnsA110E0A599017zzappergmailcom@18.104.22.168>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA110B44768689zzappergmailcom@22.214.171.124> <121119133528.ZM4445@torch.brasslantern.com> <XnsA110E0A599017zzappergmailcom@126.96.36.199>
On Nov 19, 10:05pm, zzapper wrote:
} But how should I have known that "cd -" depended on [compinit] ?
More seriously, attempting to answer this question (and similar ones about
how to introduce novice users to the zsh feature set) is what led to the
creation of the zsh/newuser module and zsh-newuser-install function.
Ideally the first time you ran the shell you should have been prompted by
the newuser subsystem to initialize completion and various other setup.
If you aren't the first root user, or the OS packager includes a default
setup for root, then you miss out on this.
} How should I have approached searching the doc?
In this case it's less how you should have approached searching it than
how you should have approached browsing it.
The third section of the documentation is entitled "Roadmap". There is
a subsection therein called "Completion". The second paragraph of that
Zsh has two completion systems, an old, so called compctl completion
(named after the builtin command that serves as its complete and only
user interface), and a new one, referred to as compsys, organized as
library of builtin and user-defined functions. The two systems differ
in their interface for specifying the completion behavior. The new
system is more customizable and is supplied with completions for many
commonly used commands; it is therefore to be preferred.
The completion system must be enabled explicitly when the shell starts.
For more information see Completion System.
Those last two words are a link to the twentieth (!) section, which
rambles a bit about contexts and styles and dispatchers, and then moves
on with a section "Initialization" which explains compinit.
Messages sorted by: