[linux-elitists] bash completion
Mon Jan 14 17:01:33 PST 2002
>>>>> On Mon, 14 Jan 2002 18:20:53 -0500, Joey Hess <firstname.lastname@example.org>
Joey> joey@silk:~>sudo apt-get install bash-
Joey> bash-builtins bash-completion bash-doc
Joey> and completion of filenames in various cvs commands (cvs add
Joey> <tab>). Perhaps bash will catch up eventually.
# cvs(1) completion
local cur prev
if [ $COMP_CWORD = 1 ] || [[ "$prev" == -* ]]; then
COMPREPLY=( $( compgen -W 'add admin checkout commit diff \
export history import log rdiff release remove rtag status \
tag update' $cur ))
complete -F _cvs -o default cvs
Joey> When I'm feeling bored, I will sometimes play the "what _can't_
Joey> zsh complete?" game. Let's see.. dict. Nope, supported.
What does it do? Does it run the app with --help and then help
complete the options?
More information about the linux-elitists