Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can't complete path with hidden .zfs?
- X-seq: zsh-users 22706
- From: lilydjwg <lilydjwg@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Can't complete path with hidden .zfs?
- Date: Fri, 19 May 2017 11:38:09 +0800
- Disposition-notification-to: lilydjwg@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:disposition-notification-to :user-agent; bh=wb6z/mIcHqK/NudlkJP2upAbI/sqFYz3M0dY1ciiTBA=; b=WDjF+fgKkgMypRUnOFm5rGGCtpck2zTxr+/eB2P5uAZ6MnBOZmHm9nK085h2WpiPST /P9MsPK5IifMif04JdAHYuNfMb7i3msmSMKUPTq2Xrn7kQvZJVNQjVV6oH13qczJjFLx 8WymWVxZepEQi5Une3Ku1tXLZiFx9VKOoYwrrMek8LDqhSUSAQjCeyQpP3zHQHlWFXHK dJea2c3RQ4meDJEeULZUe6Ad96GBCrqtg3jwMB1LadszkCHuTNUOYUzI7tnvePdNKSIe pExg8UD16LYppDja7bkQNUBmc1CjCRgWh+k9aHfm6bE4IgbQgARb6bT6xSv4ZB+MR+MR 8qIw==
- In-reply-to: <20170518100220.14cb480e@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20170518034638epcas3p184182faf0a2f6197f34386a052b7c856@epcas3p1.samsung.com> <20170518034452.GA22579@lilyforest.localdomain> <20170518100220.14cb480e@pwslap01u.europe.root.pri>
On Thu, May 18, 2017 at 10:02:20AM +0100, Peter Stephenson wrote:
> On Thu, 18 May 2017 11:44:52 +0800
> lilydjwg <lilydjwg@xxxxxxxxx> wrote:
> > When I try to complete path like /zpool/.zfs/snap<Tab> or further, zsh
> > shows there are "No Matches Found" even there actually are.
> >
> > The .zfs directory is special in zfs: it doesn't appear in "ls" but if you
> > access it, it is there. But zsh doesn't complete any path beneath it.
>
> Try:
>
> zstyle ':completion:*' accept-exact-dirs true
>
> The trade off is in path completion:
>
> ls /usr/l/bin/<TAB>
>
> will usually allow "l" to complete to "local". With the setting above,
> it won't do that if the directory "l" already exists, it'll just blindly
> accept it. I happen to prefer it that way anyway.
It works, thanks!
--
Best regards,
lilydjwg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author