Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Always display prefix, even if unambiguous?
- X-seq: zsh-users 19638
- From: Aleksandrina Nikolova <infinite.craziness@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Always display prefix, even if unambiguous?
- Date: Sat, 27 Dec 2014 23:37:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=bZ0SAhqW2jSSWCXhAuWURqV8ZhJW8mVw9fWb+7sHibg=; b=gDQhDdLkXGU0zX2BHv2GbUyICRfr0VWN8bHsjWUZn92zmaMybNXZHdsSqndWfouOot RfDh3oZOEMVjoqA6fY1TWgwBJvqpUS8pv4fx7HRyZCA9ft5RrJWY5y6cJMSqfm9re0Vr UcpU+lEKEm2n/SUNbbUWCvKQy4FcaTZ8Egd9O8npOdflC1V/wYmnTGtoy4XEmIYiEHn2 EoqwoX1PIjY1dML5WcCBWlTyfUCC0bG4PoSqXOJ8W/r1qASIEUpDudSBw2935iXVGxjU 4ehak9ZZObQYzqSoqaqpzCtRsHETi41IxuT4BdBQ+lUoD8qJgxwQPDqscwZ/H0CzagO5 MxFg==
- 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
Greetings! I don't know if this counts as a bug or I've overlooked
something, but I can't figure out how to make zsh's compsys to always
display the full path when completing filenames, for example:
ls /usr/s/l<TAB> generates:
*files:**
**sbin/ldattach* sbin/lpadmin* sbin/lshw*
share/libbluray/ share/liblangtag/ share/llvm/
src/linux@ **
**sbin/locale-gen* sbin/lpc* sbin/lspci*
share/libexttextcat/ share/libquvi-scripts/
share/locale/ src/linux-3.17.7-gentoo/**
**sbin/logoutd* sbin/lpinfo* share/lcdf-typetools/
share/libidn/ share/librarian/ share/log4j/ **
**sbin/logrotate* sbin/lpmove* share/lftp/
share/libjpeg-turbo/ share/libtool/ share/lshw/ *
which is fine. If I add the file-pattern style:
zstyle ':completion:*' file-patterns '*(-^/):files:file
*(-/):directories:directory' to separate files from dirs, I get:
*file:**
**ldattach* locale-gen* logoutd* logrotate*
lpadmin* lpc* lpinfo* lpmove* lshw*
lspci* **
**
**directory:**
**share/lcdf-typetools/ share/libexttextcat/ share/liblangtag/
share/libtool/ share/log4j/ src/linux-3.17.7-gentoo/ **
**share/lftp/ share/libidn/ share/libquvi-scripts/
share/llvm/ share/lshw/ **
**share/libbluray/ share/libjpeg-turbo/ share/librarian/
share/locale/ src/linux@ *
i.e. it does not list the directory of the files, because they are all
in sbin and zsh seems to treat the dirs and files completion separately
now. If I complete something like
ls /etc//a<TAB> I get:*
**file:**
**acpi/ati-powermode.sh* ati/amdpcsdb.default conf.d/acpid
conf.d/atieventsd init.d/atd* mail/aliases.db
pam.d/atd **
**at/at.deny ati/authatieventsd.sh* conf.d/alsasound
init.d/acpid* init.d/atieventsd*
modprobe.d/aliases.conf security/access.conf **
**ati/amdpcsdb at-spi2/accessibility.conf conf.d/atd
init.d/alsasound* mail/aliases modprobe.d/alsa.conf **
**
**directory:**
**acpi/actions/ lvm/archive/ ssl/apache2/
terminfo/a/ xdg/autostart/*
the full path (relative to the unambiguous prefix /etc) is listed for
both files and dirs, since the paths are ambiguous in both cases.
I hope I made myself clear. How can I "fix this"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author