Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can't complete path with hidden .zfs?
- X-seq: zsh-users 22705
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Can't complete path with hidden .zfs?
- Date: Thu, 18 May 2017 10:02:20 +0100
- Cc: lilydjwg <lilydjwg@xxxxxxxxx>
- Cms-type: 201P
- In-reply-to: <20170518034452.GA22579@lilyforest.localdomain>
- 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
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20170518034638epcas3p184182faf0a2f6197f34386a052b7c856@epcas3p1.samsung.com> <20170518034452.GA22579@lilyforest.localdomain>
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.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author