This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: man : List of all commands in a section


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Steven Buroff on 12/30/2006 5:47 AM:
>> From: cygwin-owner AT cygwin DOT com
                     ^^^^      ^^^^^
http://cygwin.com/acronyms/#PCYMTNQREAIYR

>>>>> Is it possible to get list of
>>>>> * all section
>>>>> * all commands in some section ?
> Install bash-completion, enable it, then in bash, type 'man 
> <TAB>' to get
> a list of all man pages.
> 
>> I tried this and I got "What manual page do you want?".

That means you typed 'man <TAB><ENTER>', without programmable completion
enabled.

>> bash-completion is installed (according to setup) but
>> I'm not sure if its enabled. How do I enable it?

$ head -n 11 /usr/share/doc/cygwin/bash-completion-20060301.README
bash-completion-20060301-2
- ------------------------------------------
Programmable tab completion enhancements for use in bash.

Note that you must edit your bash startup files to load
bash-completion into memory: make sure ~/.bashrc sources
/etc/bash_completion, and ~/.bash_profile sources ~/.bashrc.  This is
not done by the default bash-completion installation because it adds
some noticeable startup time to every interactive shell.  See
/etc/defaults/etc/skel for an example of the syntax needed to turn
enhanced completions on.


Oh, and to limit the search to a particular section or particular prefix,
you can use things such as:
$ man 1 pr<TAB>
pr         printafm   printf     procmail   proj       proxymngr
pr3287     printenv   prockill   procps     prove

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFlnLx84KuGfSFAYARAmv2AKCRJmlY/I8AVcJ3PxiPjvPWSMMGHACfct9W
q53t5M69JrT+4T3vhipxrNw=
=K5d/
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]