From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23742 invoked by alias); 14 Dec 2014 16:30:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19528 Received: (qmail 29783 invoked from network); 14 Dec 2014 16:30:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=CoYIqc8G c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=nPbzluS7kh7eX-6mz8EA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141214083112.ZM23551@torch.brasslantern.com> Date: Sun, 14 Dec 2014 08:31:12 -0800 In-reply-to: <20141214131541.GB1489@rikku> Comments: In reply to Silas Silva "umount completion context and tags" (Dec 14, 11:15am) References: <20141214131541.GB1489@rikku> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Subject: Re: umount completion context and tags Cc: Silas Silva MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 14, 11:15am, Silas Silva wrote: } } device-labels is useless for me, so I tried to exclude it: } } zstyle ':completion:*:mount:*' tag-order '!device-labels' } } But, it simply doesn't work! ^Xh still gives me all tags. That's not what '!' does. It doesn't remove the tags themselves from the help output, it removes the *possible matches* for the tags when performing an actual completion. The tag name itself is still valid. Also, are you completing after umount? Because you used :mount: in the zstyle name, so it's not going to apply to the umount command. Like so (using "unsetopt alwayslastprompt" so that the listings aren't overwritten each time I hit tab): torch% umount / /dev/shm /sys /boot /proc usbfs /dev/hda1 /proc/bus/usb /var/lib/nfs/rpc_pipefs /dev/hda2 /proc/sys/fs/binfmt_misc /dev/pts sunrpc torch% zstyle ':completion:*:umount:*' tag-order '! device-labels' torch% umount / Now there are no labels, only paths, so there is a unique "/" prefix and I have to hit tab a second time to get the list: torch% umount / / /dev/pts /proc/sys/fs/binfmt_misc /boot /dev/shm /sys /dev/hda1 /proc /var/lib/nfs/rpc_pipefs /dev/hda2 /proc/bus/usb torch% umount / If you want the style for both mount and umount, you can use: zstyle ':completion:*:(u|)mount:*' tag-order '! device-labels' (Aside: Interesting that the listing sort order ignores the slashes. I don't offhand know why that's the case.)