about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2008-10-10 09:56:25 +0000
committerBart Schaefer <barts@users.sourceforge.net>2008-10-10 09:56:25 +0000
commit7783d398c3e9a33790530d14de72c0ea50cabe36 (patch)
treee2d4a7c2973fa8351274d36e0894c6728850a682 /Doc
parentf1628c32788039657e190b17a2ce0013c0a7892e (diff)
downloadzsh-7783d398c3e9a33790530d14de72c0ea50cabe36.tar.gz
zsh-7783d398c3e9a33790530d14de72c0ea50cabe36.tar.xz
zsh-7783d398c3e9a33790530d14de72c0ea50cabe36.zip
25029: : "environ" style to allow a different search path when completing
as a different user.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compsys.yo8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 54684db14..77e6a8983 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1312,6 +1312,14 @@ A list of names of network domains for completion.
 If this is not set, domain names will be taken from
 the file tt(/etc/resolv.conf).
 )
+kindex(environ, completion style)
+item(tt(environ))(
+The environ style is used when completing for `tt(sudo)'.  It is set to an
+array of `var(VAR)tt(=)var(value)' assignments to be exported into the
+local environment before the completion for the target command is invoked.
+example(zstyle :complete:sudo: environ \
+  PATH="/sbin:/usr/sbin:$PATH" HOME="/root")
+)
 kindex(expand, completion style)
 item(tt(expand))(
 This style is used when completing strings consisting of multiple