From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27944 invoked from network); 14 Mar 2001 15:39:00 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Mar 2001 15:39:00 -0000 Received: (qmail 19873 invoked by alias); 14 Mar 2001 15:38:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3666 Received: (qmail 19862 invoked from network); 14 Mar 2001 15:38:27 -0000 From: John Cooper To: zsh-users@sunsite.dk Subject: Completing within colon separated paths Organization: Citrix Systems Date: 14 Mar 2001 15:45:35 +0000 Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii [ ZSH_VERSION is 4.0.1-pre-2 ] Is there a way to have TAB complete '/usr/local' from the X (marking cursor position) in the following: $ .:/home/jsc/bin:/usr/locX:/sbin:/usr/sbin:/usr/java/jdk1.3/bin Using expand-or-complete-prefix mimics temporary insertion of a space at the cursor position, but it seems the colon at the start of the path component prevents the recognition for filename completion. I've tried dabbling with WORDCHARS, but suspect this is not the right approach... Interestingly, when I use `vared PATH', expand-or-complete-prefix does actually complete path components. So what needs to be done to have the same behavior when editing PATH "directly" on the cmd line (i.e., without `vared')? [`vared' might not always be the way to go, e.g., when passing -classpath, plus several other args, to a JVM.] Thanks, --- John