delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/29/03:50:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Window shortcut to launch a Mintty login bash on a given directory
Date: Thu, 29 Jul 2010 09:49:56 +0200
Message-ID: <1299EF3181B10F479D85C328013285240331C4C5@THEZE.intra.cea.fr>
From: "JOHNER Jean 066030" <Jean DOT JOHNER AT cea DOT fr>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019