Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

N00b question... how do I edit my $PATH variable?

Hi everyone. I am trying to play Nethack in terminal, but I think I need to be able to

'Edit your $PATH variable for your shell to include /usr/games. '

But I have no idea how to do that. Can someone please help>

Thanks,.

R

17 iMac Rev B, Mac OS X (10.4.10)

Posted on Aug 13, 2007 1:39 PM

Reply
1 reply

Aug 15, 2007 4:29 PM in response to Romulo Romero

For BASH:

export PATH=$PATH:/usr/games

for this session. If you want it every login add that line to the end of your ~/.bashrc file (create it if needed).

For TCSH:

setenv PATH=$PATH:/usr/games

the file would be ~/.cshrc

Roger

N00b question... how do I edit my $PATH variable?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.