Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh includes directories in tab completion
- X-seq: zsh-workers 43965
- From: "Saverio M." <saverio.pub2@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Zsh includes directories in tab completion
- Date: Wed, 2 Jan 2019 15:41:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=cL8gQ+6fBK8daEtI2iqrnE/slHDqg0IzUbgNCkpKygY=; b=SM3tKbgO5JPey5/9/ukLkkz/ZBuPWbrXI/ZNpf5m/VOf3q3hTAc87LGY5FqHbP/6bI iahsOt5pF4mbazGa9ggoeobL4zY2Y77XYy7qMP0cyVnU3xqwjm1v6MKWfnapo6wu79Ye HFM/DLoIvHqmRiqn5/DIRZH4oj57C+8Z0wxLeBJ9cRqajuK21XspWSDEIERUOqyZOC6J 65mZ7tszvyQBmx1lBz9dscn/f/QKSZ3uPX5Ng+tIKvJU5IPTNT9mqBu9Szp7T/m3XtZy Abn4yeoR642e577IvgtHa39thpMtUj98oKDBFSD6cxf9J0gfQ2cOJOpvY0bThhhNfaka r3hg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
On my system, zsh tab-completion includes directories present in the
path, in addition to files, which is confusing and error prone.
Is this intended? I think it isn't, but I didn't find a way to disable
it (there's a lot of documentation around, but the posts I've found talk
about tab completion customization).
To be specific, I had Oh My Zsh installed, but I've removed it, and I've
also removed .zshrc to be sure I'm running a vanilla setup.
This is the test case:
```sh
$ echo $ZSH_VERSION
5.4.2
$ echo $ZDOTDIR
$ cat $HOME/.zshenv
cat: /home/myuser/.zshenv: No such file or directory
$ cat $HOME/.zprofile
cat: /home/myuser/.zprofile: No such file or directory
$ cat $HOME/.zshrc
cat: /home/myuser/.zshrc: No such file or directory
$ cat $HOME/.zlogin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" #
Load RVM into a shell session *as a function*
$ cat $HOME/.zlogout
cat: /home/myuser/.zlogout: No such file or directory
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/myuser/bin:/home/myuser/code/scripts:/home/myuser/.rvm/bin
$ ls -ld $(find ~/code/scripts -name 'myscript*')
drwxr-xr-x 1 myuser myuser 752 Dec 2 18:39
/home/myuser/code/scripts/myscript
-rwxrwxr-x 1 myuser myuser 4571 Dec 2 18:40
/home/myuser/code/scripts/myscript.rb
$ myscript<TAB>
myscript myscript.rb
```
Can anybody shed some light?
Thanks!
Saverio
Messages sorted by:
Reverse Date,
Date,
Thread,
Author