zsh-users
 help / color / mirror / code / Atom feed
* Always showing short home directories
@ 2005-02-03 18:12 Christian Taylor
  2005-02-04  0:37 ` Philippe Troin
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Taylor @ 2005-02-03 18:12 UTC (permalink / raw)
  To: zsh-users

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?
Thanks,

Christian Taylor


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Always showing short home directories
  2005-02-03 18:12 Always showing short home directories Christian Taylor
@ 2005-02-04  0:37 ` Philippe Troin
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Troin @ 2005-02-04  0:37 UTC (permalink / raw)
  To: Christian Taylor; +Cc: zsh-users

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-04  0:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-03 18:12 Always showing short home directories Christian Taylor
2005-02-04  0:37 ` Philippe Troin

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).