From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: _source
Date: Mon, 13 Mar 2000 15:01:16 +0000 [thread overview]
Message-ID: <38CD02BC.E17A47@u.genie.co.uk> (raw)
The source builtin was only completing for the current directory and .
was not included in the completion.
Could someone who has been tracking all the patches please check if
gdiff is still listed in _use_lo instead of _diff. I'd submit a patch
to move it but suspect that I'm out-of-date there.
Oliver Kiddle
--- Completion/Builtins/_source.bak Mon Mar 13 12:54:34 2000
+++ Completion/Builtins/_source Mon Mar 13 14:38:02 2000
@@ -1,8 +1,14 @@
-#compdef source
+#compdef source .
if [[ CURRENT -ge 3 ]]; then
compset -n 2
_normal
else
- _files
+ if [[ -prefix */ && ! -o pathdirs ]]; then
+ _files
+ elif [[ $words[1] = . ]]; then
+ _files -W path
+ else
+ _files -W "(. $path)"
+ fi
fi
next reply other threads:[~2000-03-13 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-13 15:01 Oliver Kiddle [this message]
2000-03-13 15:08 Sven Wischnowsky
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=38CD02BC.E17A47@u.genie.co.uk \
--to=opk@u.genie.co.uk \
--cc=zsh-workers@sunsite.auc.dk \
/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).