Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ls completion
- X-seq: zsh-users 29991
- From: Thomas Lauer <thomas.lauer@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: ls completion
- Date: Mon, 03 Jun 2024 17:56:54 +0100
- Archived-at: <https://zsh.org/users/29991>
- List-id: <zsh-users.zsh.org>
- Organization: TL
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author