zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: "Saverio M." <saverio.pub2@gmail.com>, zsh-workers@zsh.org
Subject: Re: Zsh includes directories in tab completion
Date: Wed, 02 Jan 2019 15:42:11 +0000	[thread overview]
Message-ID: <1546443731.1583173.1623609232.48C07026@webmail.messagingengine.com> (raw)
In-Reply-To: <0fa50a79-556d-d7ab-8628-ab724bd46a07@gmail.com>

Saverio M. wrote on Wed, 02 Jan 2019 15:41 +0100:
> 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).

Yes, it's intended.  You can 'setopt hashexecutablesonly' to disable it.

> $ cat $HOME/.zlogin
> [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # 
> Load RVM into a shell session *as a function*

For future reference, "vanilla" environments don't usually include
random third-party dependencies :)

(The gold standard is 'zsh -f'.)

> $ ls -ld $(find ~/code/scripts -name 'myscript*')

You could have done this with a recursive glob:
.
    % ls -dl ~/code/scripts/**/myscript*

Cheers,

Daniel

      parent reply	other threads:[~2019-01-02 15:42 UTC|newest]

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

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=1546443731.1583173.1623609232.48C07026@webmail.messagingengine.com \
    --to=d.s@daniel.shahaf.name \
    --cc=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).