Add an application to the command search path in csh

cshpathprofile

Recently, I have installed an application (gnuplot) under user directory (/home/usr/bin). I want to run the application whenever I type 'gnuplot' in any directory. What could I do?

I tried to set the path in ~/.cshrc by

setenv gnuplot /home/usr/bin/gnuplot

but it doesn't work. It reports "command not found" as I type gnuplot in the terminal.

Best Answer

You should add this directory to the PATH variable. in C shell this can be done with command:

setenv PATH $PATH:/home/usr/bin
Related Question