summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-02-12 17:25:18 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-02-12 17:25:18 +0000
commitd4a5b9916f52fc226251368c3cb39bb5ae19b5f8 (patch)
tree2421c5b182b7d29a06a43d6b704ba4f1a385dd70 /Doc/Zsh
parent77339cc21d723eed88e6e621d831ba28c6110b6d (diff)
downloadzsh-d4a5b9916f52fc226251368c3cb39bb5ae19b5f8.tar.gz
zsh-d4a5b9916f52fc226251368c3cb39bb5ae19b5f8.tar.xz
zsh-d4a5b9916f52fc226251368c3cb39bb5ae19b5f8.zip
Add a special-dirs example.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index b899e19f9..16eff6f77 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -2033,6 +2033,13 @@ Normally, the completion code will not produce the directory names
 `tt(.)' and `tt(..)' as possible completions.  If this style is set to
 `true', it will add both `tt(.)' and `tt(..)' as possible completions;
 if it is set to `tt(..)', only `tt(..)' will be added.
+
+The following example sets tt(special-dirs) to `tt(..)' only when the
+current prefix is empty, is a single `tt(.)', or consists only of a path
+beginning with one or more `tt(../)', and otherwise sets it to `false'.
+
+example(zstyle -e ':completion:*' special-dirs \ 
+   '[[ $PREFIX = LPAR()../RPAR()#LPAR()|.|..RPAR() ]] && reply=LPAR()..RPAR()')
 )
 kindex(squeeze-slashes, completion style)
 item(tt(squeeze-slashes))(