Path: utzoo!utgpu!watmath!watcgl!gbaciu From: gbaciu@watcgl.waterloo.edu (George Baciu [CGL]) Newsgroups: uw.unix Subject: Re: searchpath Message-ID: <11418@watcgl.waterloo.edu> Date: 7 Sep 89 14:42:09 GMT References: <16246@watdragon.waterloo.edu> Organization: U of Waterloo, Ontario Lines: 33 In article <16246@watdragon.waterloo.edu>, dvadura@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 -