23883: improve precmd documentation

Daniel Qarras: users/11915: .version quoting in _module completion
This commit is contained in:
Peter Stephenson 2007-10-02 09:08:26 +00:00
parent 5383efac8c
commit 0af9ef0d58
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-10-02 Peter Stephenson <pws@csr.com>
* 23883: Doc/Zsh/func.yo: try to improve precmd documentation.
* Daniel Qarras: users/11915: Completion/Unix/Command/_module:
.version incorrectly quoted as regexp.
2007-10-01 Clint Adams <clint@zsh.org>
* Nikolai Weibull: 23889: Completion/Unix/Command/_git: fix -o

View file

@ -85,7 +85,7 @@ _module_available_modules()
{
if [[ -n $MODULEPATH ]] && [[ ${+_available_modules} -eq 0 ]]
then
_available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
_available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \\.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
fi
}

View file

@ -188,7 +188,9 @@ Hence the set of functions is always called together.
findex(precmd)
vindex(precmd_functions)
item(tt(precmd))(
Executed before each prompt.
Executed before each prompt. Note that precommand functions are not
reexecuted simply because the command line is redrawn, as happens, for
example, when a notification about an exiting job is displayed.
)
findex(preexec)
vindex(preexec_functions)