On 5/21/10 11: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')?
You can start with `complete -c which' and look further at the bash-completion package, which uses the bash programmable completion framework to provide custom completions for a large number of commands. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/