about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-10-14 14:23:16 +0100
committerPeter Stephenson <pws@zsh.org>2015-10-14 14:23:16 +0100
commitbab1fc50436f23402696cd5236c0689c4d4dbd59 (patch)
treec183794122a8af5a982fed52ce06a707d7a8cbd9 /Doc/Zsh/contrib.yo
parent643aca932aa30083246312eeddd2e0d6befa5861 (diff)
downloadzsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.tar.gz
zsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.tar.xz
zsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.zip
36856: cdr -p/-P to prune directory list
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r--Doc/Zsh/contrib.yo12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 635f9b010..d367d8b0f 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -415,6 +415,18 @@ newlines, where I have in any case no sympathy); directories are in
 unabbreviated from and contain an absolute path, i.e. they start with tt(/).
 Usually the first entry should be left as the current directory.
 )
+item(tt(-p ')var(pattern)tt('))(
+Prunes any items in the directory list that match the given extended glob
+pattern; the pattern needs to be quoted from immediate expansion on the
+command line.  The pattern is matched against each completely expanded
+file name in the list; the full string must match, so wildcards at the
+end (e.g. tt('*removeme*')) are needed to remove entries with a given
+substring.
+
+If output is to a terminal, then the function will print the new list
+after pruning and prompt for confirmation by the user.  This output and
+confirmation step can be skipped by using tt(-P) instead of tt(-p).
+)
 enditem()
 
 subsect(Configuration)