Link to home
Start Free TrialLog in
Avatar of kidz2001
kidz2001

asked on

couple questions about set path

My sys admin has set couple paths at .cshrc_global and I don't have permission to edit the file.
How can I add my own path? If I type set path = ( ~/usr/local/bin ), this will set path ONLY to
my ~/usr/local/bin and the old paths that have been assigned by my sys admin will be deleted.

My 2nd question is: I hate to type ./my_executable_file everytime. How can I make the program runs
when I just type my_executable_file without ./  ?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of n0thing
n0thing
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kidz2001
kidz2001

ASKER

I found another simple way. I don't need to copy .cshrc_global, but instead at my .cshrc, I add

set path = ( $path ~/user/local/bin \
                    $path . )