|
|

楼主 |
发表于 2005-7-1 23:13:54
|
显示全部楼层
很明显啊。/usr/bin/bash-completion-config
Usage: bash-completion-config [ options ] [ <bashcomp1> <bashcomp2> ... ]
Add/remove bash-completion function(s) to your environment
Options:
-h, --help Display this help message.
-V, --version Display version information.
-d, --debug Enable debug-mode.
-g, --global Perform operation system-wide (must be root).
Must be used in conjunction with --install or
--uninstall.
-nc, --nocolor, --nocolour
Disable colored output.
-l, --list <all> Lists currently enabled bash-completions (local
and global). Takes an optional argument, 'all', which if
specified shows all completions, not just those installed.
-i, --install Install specified bash-completion(s).
-u, --uninstall Uninstall specified bash-completion(s).
You may specify an arbitrary number of arguments to --install and --uninstall.
The arguments may be a path, or just a name, in which case it is assumed to
exist in /usr/share/bash-completion.
Read the bash-completion-config(1) manual page for more detailed information.
# /usr/bin/bash-completion-config -l
bash-completion-config-0.8
| Local Global |
----------------------------------------
gentoo | * |
----------------------------------------
epm,ebuild具然也能用tab补齐----强了。另外发现还有这个补齐portageq
>>> Portage information query tool -- version 1.13
>>> Usage: portageq <command> [<option> ...]
Available commands:
config_protect_mask
Returns the CONFIG_PROTECT_MASK paths as defined in the portage configuration.
config_protect
Returns the CONFIG_PROTECT paths as defined in the portage configuration.
vdb_path
Returns the path used for the var(installed) package database for the
set environment/configuration options.
gentoo_mirrors
Returns the mirrors set to use in the portage configuration.
all_best_visible <root>
Returns all best_visible packages (without .ebuild).
match <root> <category/package>
Returns
seperated list of category/package-version
best_visible <root> [<category/package>]+
Returns category/package-version (without .ebuild).
mass_best_visible <root> [<category/package>]+
Returns category/package-version (without .ebuild).
has_version <root> <category/package>
Return code 0 if it's available, 1 otherwise.
portdir
Returns the PORTDIR path as defined in the portage configuration.
envvar <variable>
Returns a specific environment variable as exists prior to ebuild.sh.
Similar to: emerge --verbose --info | egrep '^<variable>='
mass_best_version <root> [<category/package>]+
Returns category/package-version (without .ebuild).
best_version <root> <category/package>
Returns category/package-version (without .ebuild).
pkgdir
Returns the PKGDIR path as defined in the portage configuration.
portdir_overlay
Returns the PORTDIR_OVERLAY path as defined in the portage configuration.
distdir
Returns the DISTDIR path as defined in the portage configuration.
详细看了 /etc/bash_completion.d/gentoo--基本上所有带选项命令的参数都能补齐-!!比如gcc - tab,tar tab!!
还有特别特定的比如rc,rc-update,gcc-config,distcc-config,java-config,opengl-update,browser-config,ekeyword,webapp-config,ezcat
,revdep-rebuild,euse,glsa-check=====超级强啊! |
|