Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Turn off completion of users



On Aug 3,  8:55am, Ulrich Spoerlein wrote:
}
} There is a user 'proxy' on my system, when I now try to 'cd' into a
} directory, let's call it 'profiles' the file/dir completion will offer
} me 'proxy' as an alternative.
} 
} I think the Completion/Unix/_users might be responsible, is there a way
} to selectively disable this completion scheme?

It's not really _users, it's _cd -- you have setopt cdablevars, and the
_cd function therefore attempts to expand anything that can come after
a tilde, even if the tilde is not explicitly present.  I think the call
tree is _cd -> _tilde -> _users.

This came up at least once before, try searching the archives.



Messages sorted by: Reverse Date, Date, Thread, Author