You are not logged in.
I would like to change man's behaviour so that it will display pages found in the second and third sections of the manual instead of the first.
Example:
man printfwould display printf(3) rather than printf(1).
I currently do this by adjusting the SECTION line of man_db.conf, but would like to do it with a dot file/environment variable.
Does anyone know how this might be done?
Last edited by jwilliamson (2013-03-10 17:57:52)
Offline
alias man="man 3"Offline
That causes man to ignore the other sections of the manual.
alias man="man -S 3,2,1,n,l,8,0,5,4,9,6,7"does seem to work.
Offline
You can always use the full path to override an alias...
Offline
I'd have to override whenever I wanted a page not in section 3. man -S overrides the default, but is in turn overridden by the section argument.
Offline
You can always use the full path to override an alias...
Or precede the command with a backslash
Last edited by ewaller (2013-03-10 19:28:43)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
You can use "\" operator for "in place" unalias.
$ alias man='bla bla bla'
$ man foo # this while use alias
$ \man foo # this while use original man commandOffline
jasonwryan wrote:You can always use the full path to override an alias...
Or precede the command with a backslash
Nice! Thanks ewaller.
Offline