zsh-workers
 help / color / mirror / code / Atom feed
* Re: How to turn off NIS hosts completion?
       [not found] ` <200412091042.iB9AgeAk006642@news01.csr.com>
@ 2004-12-09 18:27   ` Iain MacDonnell
  0 siblings, 0 replies; only message in thread
From: Iain MacDonnell @ 2004-12-09 18:27 UTC (permalink / raw)
  To: zsh-workers

Peter Stephenson <pws <at> csr.com> writes:

> 
> Iain MacDonnell wrote:
> > Is there a way to turn off this NIS lookup for users and hosts?
> 
> There's a nasty but simple hack to turn off user name lookup.  The shell
> does the lookup via the special variable userdirs in the zsh/parameter
> module.  This declares itself in such a way that it can be overridden by
> a local user definition.  You can persuade the completion system to
> override it with an empty array by adding the following code to your own
> initialisation.  It goes at some point after the completion system has
> been loaded by "compinit":
> 
>   zmodload -i zsh/parameter
>   _comp_setup+=$'\ntypeset -a userdirs'

Yes, that did the trick!


> There's no such variable for hosts.  As far as I could see from the
> code, hosts are never looked up from NIS if the hosts style is set, as
> you have.

Right, I noticed later that it was only the users lookup that was still
happening.

I'd really like to find the time to understand how all of these new pieces
fit together. In the meantime, my immediate problem is solved.

Thanks, Peter!

    ~Iain






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-09 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <41B75DC7.4020502@Dseven.ORG>
     [not found] ` <200412091042.iB9AgeAk006642@news01.csr.com>
2004-12-09 18:27   ` How to turn off NIS hosts completion? Iain MacDonnell

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