Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Completion: Make _mv and _rmdir handle zsh/files variants

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


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