On 05/21/2010 09:25 AM, Peng Yu wrote: > When I type something after 'which', something means a command. > However, bash doesn't do command completion for the argument after > 'which'. Is there a way to configure bash behave depending on the > context (in this case, do autocomplete after 'which')?
Consider installing the bash-completion package, which installs a number of autocompletion helpers that do the right thing, including one for 'which' that does command completion. Here's how bash-completion does it: complete -c command type which -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature