[plug] enabling advanced bash tab completion

ryan at is.as.geeky.as ryan at is.as.geeky.as
Mon Dec 2 13:42:14 WST 2002


On Mon, 2002-12-02 at 13:20, Carl Gherardi wrote:
> How about man *tab tab* ?
> 
> That one really bugs me :)

It does that - however as it says in the completion script, it expects
the section number first:

# man(1) completion. This is GNU, GNU/Linux and Darwin specific, in that
# 'man <section> <page>' is the expected syntax.

So once you memorise the section numbers (man man):

       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within system libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Macro packages and conventions eg man(7), groff(7).
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

you can happily go:

man 1 {tab}{tab}

Ryan



More information about the plug mailing list