diff options
author | Matthew Martin <phy1729@gmail.com> | 2019-04-04 18:45:19 -0500 |
---|---|---|
committer | Matthew Martin <phy1729@gmail.com> | 2019-04-04 18:45:19 -0500 |
commit | 6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25 (patch) | |
tree | 7e2d8fe8700b6739dce9416f38ba7bccae0d1ce4 /Doc/Zsh/compsys.yo | |
parent | 7d84cde31330023b264a415ffa02686ee0338b4f (diff) | |
download | zsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.tar.gz zsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.tar.xz zsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.zip |
44202 (tweaked): _normal: Add -P to reset precommands
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r-- | Doc/Zsh/compsys.yo | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index f0fdbf293..8b00517b7 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -4658,7 +4658,7 @@ fi return ret) ) findex(_normal) -item(tt(_normal) [ tt(-p) var(precommand) ])( +item(tt(_normal) [ tt(-P) | tt(-p) var(precommand) ])( This is the standard function called to handle completion outside any special tt(-)var(context)tt(-). It is called both to complete the command word and also the arguments for a command. In the second case, @@ -4674,9 +4674,14 @@ then calls `tt(_normal -p $service)'. The effect is that `tt(nohup) var(cmd ...)' is treated in the same way as `var(cmd ...)'. startitem() +item(tt(-P))( +Reset the list of precommands. This option should be used if completing +a command line which allows internal commands (e.g. builtins and +functions) regardless of prior precommands (e.g. `tt(zsh -c)'). +) item(tt(-p) var(precommand))( Append var(precommand) to the list of precommands. This option should be -used in nearly all cases. +used in nearly all cases in which tt(-P) is not applicable. ) enditem() |