Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Can't complete path with hidden .zfs?



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