zsh-workers
 help / color / mirror / code / Atom feed
From: "Saverio M." <saverio.pub2@gmail.com>
To: zsh-workers@zsh.org
Subject: Zsh includes directories in tab completion
Date: Wed, 2 Jan 2019 15:41:38 +0100	[thread overview]
Message-ID: <0fa50a79-556d-d7ab-8628-ab724bd46a07@gmail.com> (raw)

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

             reply	other threads:[~2019-01-02 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-02 14:41 Saverio M. [this message]
2019-01-02 15:35 ` dana
2019-01-02 15:42 ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0fa50a79-556d-d7ab-8628-ab724bd46a07@gmail.com \
    --to=saverio.pub2@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).