Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh includes directories in tab completion
- X-seq: zsh-workers 43967
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Saverio M." <saverio.pub2@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Zsh includes directories in tab completion
- Date: Wed, 02 Jan 2019 15:42:11 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:references :in-reply-to; s=fm2; bh=YDS0/uEkWtBItYdP4nPpq0X3nRbZSEsZJBGgsqKW 4F8=; b=VLX7KoRdlxdR+K74AoZfp+/7nhC/TIp8NX+TdvwFheVWBg/MB2i/UDWN 3kMWpqbJxj/sZxQ44n4OAS79OVUt3MJ85IkR7uf8zTX1VwOOHnaLqwGoS9/74ARg HrRlzcVyVzsFSK7EKWBFmyOi+1FSUYYYud0FypfI3FZ+oqUpEKT80KJbNEmsMM18 8axeKbjkRdsSxlDUzOSe7/YeKtFc4SDB52/UwWYAFUgdKjTYbAcj2KFS/AVtP2Cb p6scLFJ7FVvrUjGqT8kG5wi7p2ggyEWwlp5YOmZF5s1rWOx3ha//WrrzPXNIFYFa m0kqa8tkCMGsKUKQClgU/CQ30h1nWg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=YDS0/uEkWtBItYdP4nPpq0X3nRbZSEsZJBGgsqKW4 F8=; b=CNzTnFXO7Qz4OY1Zr/kvhAVIAaUUmYSi7wvcqQofuOPB8Bo309LDUykM3 D/0j/QZPpgI2/aBercKstzareOqP/by43SX92pqEgkvaR1nIVmrT0dBx0E2W5O76 MZmMYrXRu14rFWaQpr2/5OQGYhfgsLiQ41A/+6klwgx6FVsvyAyvDC5qc9gAOD0y cXp6Q13H2GcEjs3QvRFUW4Ww18DQOZ9u1MOcvB7/y8TPlBzH76eAF2yn5XlIBV0o L/27FhdNTFM+kSBdogwRtX/95aYpOHa3YfFyNAdlrlqKn5I8cBSlN5S8skrGs7sz J+wTl1oNGTz7Vqjh+HliSXCFXpwEA==
- In-reply-to: <0fa50a79-556d-d7ab-8628-ab724bd46a07@gmail.com>
- 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
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author