From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17736 invoked by alias); 24 May 2017 19:03:45 -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: 22714 Received: (qmail 3143 invoked from network); 24 May 2017 19:03:45 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.217.179):SA:0(-0.0/5.0):. Processed in 1.277103 secs); 24 May 2017 19:03:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.179 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=DQf02ZCC7Hu5sVrJ7OTres8vLzOU2U2polAVhRrlzc4=; b=XzSHhRQiGxSl5OyEkwDj8niFwf6Z93lcqPiZZkN9PR+lbf6a759peDK5tXwHb7CBNa WUXXCLfugBKZIzUl7KfaFU86QiBpeTeYn+Jko/3s6dRO3gSrDUs76w4F6M+XA4Ac7p18 yFhruNDVUFDjeDyF03xBER2KjYInBuLzsgeFjv/p9yED2nzcyL0nUSiePC/RIQ6LdA4Q jdA+BWMxq2+WBRUiarOmFu1Cj0Fbd2J/y0Um9TUylEeHrqwIqS1IE21DojqeSH4xuKFJ yZJ6H96BKMgAiYTZ4hP0zXuIeHKLrt7CzOk4kXLQAyO+cwMgbsxWFLrW6Bwp3ACIVT/E vrVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=DQf02ZCC7Hu5sVrJ7OTres8vLzOU2U2polAVhRrlzc4=; b=PxBXygGAeqyf+69At4sEme9Ha6TmJld5mv/w5v5BH5e+uWpAs7yX9iUFFKGhtwCs/z ehZnXHcleCUpz7BHKOXSS2wwKCAAWfVFUUVQviJMMuiwxKgbxWxLYASG1D+W0PydUY6G HQmIxZxrGQW8F8Nww2eFYcEreXLlmM21cYp5GuJjNxJBNi9zs02FR4zyz45iEdz773Np OwL+RvnWzxjYjpWilkHADutdFFTALmA8Jn1GTq5dM6OCYQeJav9AdMZTT4iVofSro8lA 7HPJlVBZShssFVhtE9Ei+KUcduv8v4ygFfKibAoGrvagUmP6F/hFXICOCScQ4757hF6W GkbA== X-Gm-Message-State: AODbwcD65vSOcmoYiBkKhK1u9ZTEJTLOwWdeNMz1+18JVO5FvrOEnoem Kp4iDBi/ntSwOaCv X-Received: by 10.159.60.1 with SMTP id u1mr19463209uah.95.1495652618891; Wed, 24 May 2017 12:03:38 -0700 (PDT) From: Bart Schaefer Message-Id: <170524120340.ZM15282@torch.brasslantern.com> Date: Wed, 24 May 2017 12:03:40 -0700 In-Reply-To: <20170524104148.GA31624@lilyforest.localdomain> Comments: In reply to lilydjwg "Re: Can't complete path with hidden .zfs?" (May 24, 6:41pm) References: <20170518034452.GA22579@lilyforest.localdomain> <20170518100220.14cb480e@pwslap01u.europe.root.pri> <20170519033809.GA16150@lilyforest.localdomain> <20170519093052.1832023d@pwslap01u.europe.root.pri> <20170524104148.GA31624@lilyforest.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org, zsh-users@zsh.org Subject: Re: Can't complete path with hidden .zfs? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 24, 6:41pm, lilydjwg wrote: } } It'll be great if I can use a custom function to decide what to add, so } I can add .zfs only when it actually exists. There are two ways you can go here. If the .zfs mappings don't change very often, you can test at the time your .zshrc etc. are read and assign to fake-files at that time. On the other hand if either they change during your shell session or the check for them is very inexpensive, you can use "zstyle -e" to have a command executed every time the style is looked up.