This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to prepend a directory to the PATH to accommodate CVSNT?


On  5 Oct, Siegfried Heintze wrote:
>  >Anyway, in your case it should be as simple as this: 
>  > 
>  >PATH="/cygdrive/c/Program Files/cvsnt/bin:$PATH" 
>  > 
>   
>  Where do I put this statement? .bashrc? 

You could, but why not put it in ~/.profile so it's read just once by
the login shell, and any child shells then have it in the environment,
instead of having to do it themselves?

FRom memory, bash will look for ~/.bash_login, ~/.profile, ~/.login,
(not sure if it's in that order), and use the first one it finds.

But it won't do this if $HOME was created by Cygwin "mkdir" instead of
by Windows Explorer, due to some mysterious access permissions problem.

BTW, I use .profile because it's usable regardless of what (Bourne-like)
shell you use.

luke


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]