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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.