X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_TX X-Spam-Check-By: sourceware.org X-Received: by 10.68.201.227 with SMTP id kd3mr856528pbc.65.1361932355609; Tue, 26 Feb 2013 18:32:35 -0800 (PST) Message-ID: <512D7040.7080905@gmail.com> Date: Wed, 27 Feb 2013 10:32:32 +0800 From: Arthur Tu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: startxwin started bash does not read .bashrc or .bash_profile References: <15470 DOT 1361923720 AT relay DOT known DOT net> In-Reply-To: <15470.1361923720@relay.known.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2/27/2013 8:08 AM, Kevin Layer wrote: > If I put this into .startxwinrc: > > mintty /usr/bin/bash.exe --login -i > > the resulting shell does not read .bash_profile. If I put > > mintty /usr/bin/bash.exe -i > > it doesn't read .bashrc. > > > I've been beating my head against this wall for hours, over a few > days. I've googled my ass off, but I can't find anyone that's having > the same problem. > > > My ultimate goal is to use ssh-agent/ssh-add to make life easier, but > it requires my .bashrc to be sourced (.bash_profile merely sources > .bashrc). > > > Thanks. > > ## .bash_profile if [ -f "${HOME}/.bashrc" ] ; then source "${HOME}/.bashrc" fi What do you mean? Isn't this enough? -- 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