zsh-users
 help / color / mirror / code / Atom feed
From: Philippe Troin <phil@fifi.org>
To: Christian Taylor <cht@chello.at>
Cc: "zsh-users" <zsh-users@sunsite.dk>
Subject: Re: Always showing short home directories
Date: 03 Feb 2005 16:37:25 -0800	[thread overview]
Message-ID: <8765199n3u.fsf@ceramic.fifi.org> (raw)
In-Reply-To: <200502031912.26120.cht@chello.at>

Christian Taylor <cht@chello.at> writes:

> Hi everyone,
> 
> zsh displays the home directories of users in a shortened form (in a suitable 
> prompt), but only after zsh "knows" about them, for instance after actually 
> using the directory name in the shortened form or after doing a completion 
> like this:
> % cd ~<TAB>
> 
> What would be the best way to let zsh figure this out already when it starts?

Put:

        : $userdirs

In your zshrc.

Be forewarned that this will enumerate all the passwd entries in your
system.  If you're in a networked environment using nis/yp or ldap
with more than a few hundred users, this stanza could take a while to
run and use a lot of memory.

Phil.


      reply	other threads:[~2005-02-04  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-03 18:12 Christian Taylor
2005-02-04  0:37 ` Philippe Troin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8765199n3u.fsf@ceramic.fifi.org \
    --to=phil@fifi.org \
    --cc=cht@chello.at \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).