zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [PATCH] Completion: Make _mv and _rmdir handle zsh/files variants
Date: Wed, 24 Apr 2019 12:52:10 -0500	[thread overview]
Message-ID: <295F18A2-3B8B-4A7B-83F8-6CDD98F94CE3@dana.is> (raw)

I have a few follow-up patches to workers/44242. Not sure what's the best way
to break them up, hopefully this is OK.

Patch # 1: Make _mv and _rmdir handle their respective zf_* built-ins. (_rmdir
doesn't really matter because zf_rmdir takes no options, but it seems
appropriate)

dana


diff --git a/Completion/Unix/Command/_mv b/Completion/Unix/Command/_mv
index 2f0f844d4..2b8ac3273 100644
--- a/Completion/Unix/Command/_mv
+++ b/Completion/Unix/Command/_mv
@@ -1,4 +1,4 @@
-#compdef mv gmv
+#compdef mv gmv zf_mv
 
 local args variant
 
diff --git a/Completion/Unix/Command/_rmdir b/Completion/Unix/Command/_rmdir
index 2ae0fd9b2..004511558 100644
--- a/Completion/Unix/Command/_rmdir
+++ b/Completion/Unix/Command/_rmdir
@@ -1,4 +1,4 @@
-#compdef rmdir grmdir
+#compdef rmdir grmdir zf_rmdir
 
 local variant
 local -a args
diff --git a/Completion/Unix/Type/_directories b/Completion/Unix/Type/_directories
index 438181eec..dc92e6c34 100644
--- a/Completion/Unix/Type/_directories
+++ b/Completion/Unix/Type/_directories
@@ -1,4 +1,4 @@
-#compdef zf_rmdir dircmp -P -value-,*path,-default-
+#compdef dircmp -P -value-,*path,-default-
 
 local expl
 


                 reply	other threads:[~2019-04-24 17:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=295F18A2-3B8B-4A7B-83F8-6CDD98F94CE3@dana.is \
    --to=dana@dana.is \
    --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).