mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
Andy Spencer: 27148: ignore build directories when searching for
kernel modules in modutil completion
This commit is contained in:
parent
3257f6b8d5
commit
443a64d489
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-07-14 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* Andy Spencer: 27148: Completion/Linux/Command/_modutils:
|
||||||
|
ignore build as well as source directories when searching
|
||||||
|
recursively for modules.
|
||||||
|
|
||||||
2009-07-12 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2009-07-12 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 27135: Doc/Zsh/options.yo, Src/exec.c, Src/jobs.c: expand
|
* 27135: Doc/Zsh/options.yo, Src/exec.c, Src/jobs.c: expand
|
||||||
|
@ -11980,5 +11986,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4739 $
|
* $Revision: 1.4740 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -87,7 +87,7 @@ case "$state" in
|
||||||
else
|
else
|
||||||
kver=$(uname -r)
|
kver=$(uname -r)
|
||||||
fi
|
fi
|
||||||
modules=( $modules_dir/$kver/(*~source)/**/*(.:t:r) )
|
modules=( $modules_dir/$kver/(*~(source|build))/**/*(.:t:r) )
|
||||||
|
|
||||||
if [[ $state = loadable_modules ]]; then
|
if [[ $state = loadable_modules ]]; then
|
||||||
modules=( ${modules:#(${(j:|:)~${=loaded_modules//_/-}})} )
|
modules=( ${modules:#(${(j:|:)~${=loaded_modules//_/-}})} )
|
||||||
|
|
Loading…
Reference in a new issue