How to setenv on tcsh?

dlarmour

Registered
Hi

I want to add to my PATH. I tried

setenv PATH=$PATH:/usr/bin

It tells me there is a "bad modifier (/). Can someone help?

Thanx

David
 
When I was using tcsh in jaguar this is the line I had:

setenv PATH /usr/X11R6/bin:/usr/local/bin:$PATH
 
well this always worked for me and still does:

set path = ( $path /usr/local/bin ) or whatever directory you wanna add. oh yea dont forget to rehash after you used this command.
Also if you want to make it permanent add it to your /.tcshrc file. Just open it (vi ~/.tcshrc or any other editor) then add the set path line, save the file, and rehash or open another terminal window. (this is for tcsh shell only for bash or sh it would be slightly diffrent)
 
Back
Top