X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0	tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50E47DEC.9030702@cs.umass.edu>
Date: Wed, 02 Jan 2013 13:35:24 -0500
From: Eliot Moss <moss@cs.umass.edu>
Reply-To: moss@cs.umass.edu
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to make persistent changes to PATH in cygwin?
References: <BLU0-SMTP361C219C76F9B12A644D34CE220@phx.gbl>
In-Reply-To: <BLU0-SMTP361C219C76F9B12A644D34CE220@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

