about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-03-28 14:51:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-03-28 14:51:31 +0000
commit109c0f20f8f5351f55f023c2447c6750921b2998 (patch)
treeb1884903b5521c0e099f09b24b48e0242f152f03
parent594f783c77e89a1b4d7c1b58448f797e7ed87e43 (diff)
downloadzsh-109c0f20f8f5351f55f023c2447c6750921b2998.tar.gz
zsh-109c0f20f8f5351f55f023c2447c6750921b2998.tar.xz
zsh-109c0f20f8f5351f55f023c2447c6750921b2998.zip
24775: improve _cd option handling
-rw-r--r--Doc/Zsh/compsys.yo10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 6350dfb84..69cef33cd 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1221,6 +1221,16 @@ bindable command.  If it set to `true' and the word on the command
 line is not the name of an alias, matching alias names will be
 completed.
 )
+kindex(complete-options, completion style)
+time(tt(complete-options))(
+This is used by the completer for tt(cd), tt(chdir) and tt(pushd).
+For these commands a tt(-) is used to introduce a directory stack entry
+and completion of these is far more common than completing options.
+Hence unless the value of this style is true options will not be
+completed, even after an initial tt(-).  If it is true, options will
+be completed after an initial tt(-) unless there is a preceeding
+tt(--) on the command line.
+)
 kindex(completer, completion style)
 item(tt(completer))(
 The strings given as the value of this style provide the names of the