X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Window shortcut to launch a Mintty login bash on a given directory Date: Thu, 29 Jul 2010 15:32:15 +0200 Message-ID: <1299EF3181B10F479D85C328013285240331C4C6@THEZE.intra.cea.fr> In-Reply-To: <1299EF3181B10F479D85C328013285240331C4C5@THEZE.intra.cea.fr> References: <1299EF3181B10F479D85C328013285240331C4C5 AT THEZE DOT intra DOT cea DOT fr> From: "JOHNER Jean 066030" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 I found the following solution: Create a Windows shortcut with C:\cygwin\bin\mintty.exe -e bash --rcfile ~/.foobarrc where .foobarrc is a concatenation of /etc/profile, ~/.bash_profile with th= e following line at the end: cd ~/foobar The above solution is a work-around of a more clean solution which could be: C:\cygwin\bin\mintty.exe -e bash --login --rcfile ~/.foobarrc where .foobarrc contains only the " cd ~/foobar" line. Unfortunately, when launching bash with --login, the --rcfile option is no = longer active. Has somebody an idea on the way to launch a login bash which reads a specif= ied .rc file? Best regards Jean Johner =20 -----Message d'origine----- De=A0: JOHNER Jean 066030=20 Envoy=E9=A0: jeudi 29 juillet 2010 09:50 =C0=A0: 'cygwin AT cygwin DOT com' Objet=A0: Window shortcut to launch a Mintty login bash on a given directory Hello, Putting the following command line in a Windows shortcut opens a login bash= in the /home/User_name directory (~): C:\cygwin\bin\mintty.exe -e bash --login Now I would like to do the same in the /home/User_name/foobar directory. I tried: C:\cygwin\bin\mintty.exe -e bash --login -c "cd foobar" with the result that the Mintty window vanishes. I also tried to add C:\cygwin\home\User_name\foobar in the "Start in" box of the windows shortcut. With no effect. Thank you for your help. Jean JOHNER -- 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