searchpath

George Baciu [CGL] gbaciu at watcgl.waterloo.edu
Fri Sep 8 00:42:09 AEST 1989


In article <16246 at watdragon.waterloo.edu>, dvadura at watdragon.waterloo.edu (Dennis Vadura) writes:
> Ok, how do you get /bin/searchpath to put $HOME/bin FIRST in the searchpath
> before other directories....
> 
> -dennis
> -- 

You can always modify the search path list or just build your
own, although not recommended, by following the /bin/searchpath line
in your ~/.cshrc  with:

	set path = ( $home/bin $path )

This inserts your own bin directory in front of the path list
already available in $path. You can put any other directories in
any order you like, separated by a space, in the brackets.
This order will be preserved.

Now, if you really hate increasing your .cshrc file by
one line then you can get a little more sophisticated by
replacing your /bin/searchpath line with:

setenv PATH "$home/bin:`/bin/searchpath type=users type=x11 type=tex`"

You can add any other available types and flags for the
searchpath command in between ``. You can also append aother
directories as in the following:

setenv PATH "$home/bin:`/bin/searchpath type=users`:$home/myX11:$home/shell"

Note, the separator here is ":".

- George -



More information about the Comp.unix mailing list