zsh-users
 help / color / mirror / code / Atom feed
* ls completion
@ 2024-06-03 16:56 Thomas Lauer
  2024-06-03 20:40 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Lauer @ 2024-06-03 16:56 UTC (permalink / raw)
  To: Zsh Users

Hi all,

I very rarely use ls as I have written my own directory lister. So the
other day I did use ls for a test and this is what happened when I
pressed the <tab> key:

1/usr/share/zsh>ls <tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./
ls -<tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./
ls - ./<tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./

All text after the three <tab>s to EOL is completion output. For other
commands like cp or awk etc completion works as expected.

<tab> is bound to expand-or-complete-prefix. I have no alias or function
called ls. The _ls in /usr/share/zsh/functions/Completion/Unix/ is as
far as I can tell the one that came with zsh v 5.9. At least I've not
modified or replaced it.

1/usr/share/zsh/funct/Compl/Unix>zsh --version
zsh 5.9 (x86_64-debian-linux-gnu)
1/usr/share/zsh/funct/Compl/Unix>d _ls
Dir: /usr/share/zsh/functions/Completion/Unix (overlay mounted on /)
-rw-r--r--#   9206  05.02.23 01:37 _ls
1 file(s)=   9206  using    9216 ; 0 DOTfile(s); 0 dir(s)
0 symlink dir(s);  15919M2 of  17249M0 free on /

I assume that *something* in my zsh config must be the culprit but I've
not the faintest what that could be!?

As ever thanks for any hints.

Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-04 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-03 16:56 ls completion Thomas Lauer
2024-06-03 20:40 ` Bart Schaefer
2024-06-04 12:34   ` Thomas Lauer
2024-06-04 13:19     ` zeurkous
2024-06-04 14:09       ` FU: " zeurkous

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).