diff options
author | Peter Stephenson <pws@zsh.org> | 2015-10-14 14:23:16 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-10-14 14:23:16 +0100 |
commit | bab1fc50436f23402696cd5236c0689c4d4dbd59 (patch) | |
tree | c183794122a8af5a982fed52ce06a707d7a8cbd9 /Doc/Zsh | |
parent | 643aca932aa30083246312eeddd2e0d6befa5861 (diff) | |
download | zsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.tar.gz zsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.tar.xz zsh-bab1fc50436f23402696cd5236c0689c4d4dbd59.zip |
36856: cdr -p/-P to prune directory list
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/contrib.yo | 12 |
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) |