From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8412 invoked from network); 1 Oct 2002 11:35:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Oct 2002 11:35:24 -0000 Received: (qmail 25882 invoked by alias); 1 Oct 2002 11:34:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5405 Received: (qmail 25867 invoked from network); 1 Oct 2002 11:34:57 -0000 Date: Tue, 1 Oct 2002 14:34:53 +0300 From: Jonas Juselius To: zsh-users@sunsite.dk Subject: zstyle problems Message-ID: <20021001113453.GA3095@chem.helsinki.fi> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Hello, first off, I'm pretty much a newbie to zsh. I have been using it for a year or so, and I'm pretty familiar with the basic stuff. Now, I decided that I wanted to try squeeze the rest of the juice out of zsh, since I'm spending roughly 8-10 hours with the thing :) One thing that I want to do is set up completion so that it works _precisely_ how _I_ want it to work. So, I read up on using zstyle and writing completion widgets. Then I tried to do the following (this is not what I really want, it's just a simple test): I wanted different completion for 'cd' and the rest of the commands. I put the following lines in my .zshrc: zstyle ':completion:*:*:cd:*' completer _complete zstyle ':completion:*' completer _complete _correct _approximate But to my big surprise, I still get exactly the same completion (with corrections) for 'cd' and the other progs. Am I missing something here? I also tried to change tag-order for the -prefix- completer so that it would complete named directories before users, but that failed as well... I am, however, able to make zsh complete on specific file extensions for some programs I wrote, using the file-patterns style. Any help appreciated, .jonas. -- "Time shared nodes are not considered to consist of virtual nodes and these nodes or used by, but not allocated to, jobs." -- PBS Admin Guide [ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]