From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3535 invoked by alias); 14 Dec 2014 15:15:12 -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: 19527 Received: (qmail 10646 invoked from network); 14 Dec 2014 15:15:10 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ucCj/HFV8XQJe0vhDEjILejdTVkXplKibQh4BrteV2E=; b=BWIYXF/xpYjRySmV0GlBF/84PWCdW8I7AGhb0gxv97ELWOBuSYjgjcjZWjFrSiNeMd GXC+VMQzyqcDbkhXr4mmTsUS7GiP1bQ2HyJkq/QIfgihw5HhEihwmoI1rqPpGxC0yeTS f/GOGrS7164VGoQpOfD2TfgjnKkXuPXcyNTcQIlycD1iuXiq5uqBnd0WeSWi+pnvuKYC icuEhGv/RDJ4ptNHNezaA31nfBto8LS5QkiH+0zMsLfB/rdH/Bm6q6Mo20zfRtcEukm4 p/xOiB2jSE4PS0IEyyrMREbf2gag8YJa+b9SDUclKXMpnYm8naq6S8mzZVaG2yNcFwLV h9qQ== MIME-Version: 1.0 X-Received: by 10.42.25.144 with SMTP id a16mr24684995icc.66.1418570105432; Sun, 14 Dec 2014 07:15:05 -0800 (PST) In-Reply-To: <20141214131541.GB1489@rikku> References: <20141214131541.GB1489@rikku> Date: Sun, 14 Dec 2014 16:15:05 +0100 Message-ID: Subject: Re: umount completion context and tags From: Mikael Magnusson To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sun, Dec 14, 2014 at 2:15 PM, Silas Silva wrote: > Hi there! > > I was trying to tweak umount completion by using the tag-order style. > AFAIK, umount completion. According to "umount ^Xh", we have: > > tags in context :completion::complete:umount:: > argument-rest options (_arguments _mount (eval)) > tags in context :completion::complete:umount:argument-rest: > device-labels device-paths directories (_alternative _mount (eval)) > device-paths (_canonical_paths _canonical_paths _alternative _mount (eval)) > > It means that we have at least three tags: > > device-labels > device-paths > directories > > 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. Taking a > glance at the _mount completion, it has tags above hardcoded, but I > didn't look further. > > In reality, what I want is to avoid behaviour like (in Linux): > > mount /dev/sdb1 /mnt/usb0 > cd /mnt > umount u > umount udev (!!!) > > Any help? > > Thank you! That's weird in at least two ways. I get the style to work only if i make it ":completion:*". Secondly, those are filesystem types, not labels, and are only valid after -t afaik(?), and umount -t produces a broken completion. -- Mikael Magnusson