475 |
|
|
476 |
@end example |
@end example |
477 |
|
|
478 |
@item You can use the -c command with tcsh's complete command. |
@item You can use the -c command with complete command in shell. |
479 |
|
|
480 |
|
In bash: |
481 |
|
@example |
482 |
|
|
483 |
|
$ funcs() |
484 |
|
> @{ |
485 |
|
> local cur |
486 |
|
> cur=$@{COMP_WORDS[COMP_CWORD]@} |
487 |
|
> COMPREPLY=(`global -c $cur`) |
488 |
|
> @} |
489 |
|
$ complete -F funcs global |
490 |
|
$ global kmem_@kbd{TAB}@kbd{TAB} |
491 |
|
kmem_alloc kmem_alloc_wait kmem_init |
492 |
|
kmem_alloc_nofault kmem_free kmem_malloc |
493 |
|
kmem_alloc_pageable kmem_free_wakeup kmem_suballoc |
494 |
|
$ global kmem_s@kbd{TAB} |
495 |
|
$ global kmem_suballoc |
496 |
|
../vm/vm_kern.c |
497 |
|
|
498 |
|
@end example |
499 |
|
|
500 |
|
In tcsh: |
501 |
@example |
@example |
502 |
|
|
503 |
% set funcs=(`global -c`) |
% set funcs=(`global -c`) |