How to make persistent changes to PATH in cygwin?
Eliot Moss
moss@cs.umass.edu
Wed Jan 2 18:35:00 GMT 2013
On 1/2/2013 1:32 PM, Aaron Schneider wrote:
> I've tried this:
>
> export PATH=`echo $PATH`:/newdir/
>
> And PATH contains the new dir, but after closing and reopening mintty (with cygserver stopped)
> changes are lost.
>
> How to solve that?
Every time you open up mintty you are starting a new login bash.
The way to set environment variables "persistently" (your term,
not mine) is to add the export command to your .bash_profile or
similar bash file read by bash when it starts up. This is not
specific to cygwin, but is normal Unix-like behavior.
Regards -- Eliot Moss
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list