This is the mail archive of the
mailing list for the Cygwin project.
Re: Window shortcut to launch a Mintty login bash on a given directory
- From: "JOHNER Jean 066030" <Jean dot JOHNER at cea dot fr>
- To: <cygwin at cygwin dot com>
- Cc: <andy dot koppe at gmail dot com>
- Date: Sat, 31 Jul 2010 15:45:08 +0200
- Subject: Re: Window shortcut to launch a Mintty login bash on a given directory
On 29 July 2010 08:49, Andy Koppe wrote:
>> I also tried to add
>> in the "Start in" box of the windows shortcut. With no effect.
> That was the right idea. The reason it didn't work is that
> /etc/profile changes back to your home directory, unless the variable
> CHERE_INVOKING (used by the 'chere' package) is set.
> Hence you could get it to work by changing the shortcut target to
> C:\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/bash --login
Thank you Andy,
The last problem is that the window title, for the "My documents/foobar"
/cygdrive/d/Documents and settings/User_name/My documents/foobar
which iconifies to "/cygdrive/d/Docu...", the latter indication being
the same for all directories.
C:\cygwin\bin\mintty.exe -t foobar -e /bin/env CHERE_INVOKING=1
to get the "foobar" window title, but at the end the complete above
title comes back again.
PS: same problem when installing chere with
chere -ia -s bash -t mintty
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple