Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Completion: Make _mv and _rmdir handle zsh/files variants
- X-seq: zsh-workers 44249
- From: dana <dana@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [PATCH] Completion: Make _mv and _rmdir handle zsh/files variants
- Date: Wed, 24 Apr 2019 12:52:10 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=248mgchfQBYHfEXROrdiwvGpsddDfwtNxIdkA1ZNcAw=; b=O6AWXKrq2o91xEDvumSuWlhJCSmiJC1jBao2hZK+60DvjnLNkFXCRTtCE0RswViYRc qVX+u2sep7bBJ+GP8jEP6SUiHlogyHjbKMTvLcU/CTy/6pLKRwsYJtybzaxfpyWxfcB+ xGvyaEcifo4Po2Xd2DcCdMH1A01U85G2kBDmDeuwo26XRfq3HPrr1lVzQZPpKkQpKWn7 VZ/buyQHHdFTN1dnRoH1yzdvXDc/vXy/vzpAO3p5HhMfyRCl9ffUPgB6cR/M+feJgnKM jFX1tDUWd8bbTDNZM8E5x75rCzddTVrGEb1EjUajC1LSf/r6ad78mThnmR88F2ii3Rb7 I0bQ==
- 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
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author