Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shadowfax

macrumors 603
Original poster
Sep 6, 2002
5,849
0
Houston, TX
hey, could someone give me a rundown on how to reset the file that has my manpath on it... you know, the commands, the location of the default manpath, and the name of the file i need to be editing? i screwed it up unwittingly a few weeks ago and can't remember where anything is. thanks.
 
I'm reading up on it. The man command uses the manpath command to set the MANPATH environment variable. But you can set MANPATH yourself too. Other Unix varieties allow MANPATH to contain a colon-separated list of directories, and I assume Darwin is the same.

Are you using tcsh? I added the line
Code:
set MANPATH=`manpath`
to ~/.tcshrc to initialize MANPATH, although you'd get this value anyway by default. The advantage is that you can add other directories to your MANPATH by adding an additional line like this:
Code:
set MANPATH="${MANPATH}:/my/directory:/another/directory"
 
yeah, my manpath was screwed in the actual default initializing file for tcsh... i can't remember where it is or i would be able to fix it...
 
Originally posted by shadowfax
yeah, my manpath was screwed in the actual default initializing file for tcsh... i can't remember where it is or i would be able to fix it...

Well, he told you where it should be:

~/.tcshrc (or ~/.cshrc)

which is the same as:

/Users/<your_user_name>/.tcshrc

(or /Users/<your_user_name>/.cshrc)


The files are hidden, so they won't show up in the Finder.

...unless you meant the system-wide init files, which are:

/etc/csh.cshrc
/etc/csh.login
/etc/manpath.config

(Heh -- Doctor Q beat me to the reply -- gotta type faster... ;) )
 
Originally posted by szark
/etc/csh.cshrc
/etc/csh.login
/etc/manpath.config

(Heh -- Doctor Q beat me to the reply -- gotta type faster... ;) )

i was actually looking for the first two you mentioned, so thanks.

to both of you. i love this site for little junk like this :)

i really should RTFM though--except it's kind of hard when your man command doesn't bring anything up for gcc...
 
Code:
# System-wide .login file for csh(1).

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"

If you don't have X11 installed:

Code:
# System-wide .login file for csh(1).

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin"
 
I purposely waited so szark could answer that one. I don't want to hog all the fun.

Why read manuals when you have friends?
 
Be sure to type
Code:
man 'apollo 13'
or
Code:
apropos 'tank top and tennis shoes at the oscars'
for some half-witted shell jokes. Or make up your own variations!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.