X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 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="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: Re: Window shortcut to launch a Mintty login bash on a given directory
Date: Sun, 1 Aug 2010 16:16:11 +0200
Message-ID: <1299EF3181B10F479D85C328013285240331C4CC@THEZE.intra.cea.fr>
From: "JOHNER Jean 066030" <Jean.JOHNER@cea.fr>
To: <cygwin@cygwin.com>
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 31 July 2010 15:00, Andy Koppe wrote:

> The window title is changed to the working directory as part of the
> shell prompt, i.e. the PS1 variable, which is set in /etc/profile.
> It's the initial part of it that does it:

> \[\e]0;\w\a\]

> So you could change PS1 to something more to your liking in
> ~/.bash_profile.

> Alternatively, you could mount (part of) the "D:/Documents and
> settings/User_name/My documents/foobar" path to a shorter POSIX path
> in /etc/fstab or /etc/fstab.d/$USER. See
> http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table for
> details.

> You might also want to consider making it your official home
> directory, in which case it would be abbreviated to a tilde in the
> title.

> (This isn't mintty-specific of course.)

Thank you, I will study that more closely.

Btw, I read your minty man where you warn that /etc/profile puts the
folder to $HOME. Perhaps it would be useful that you also describe the
recipe at that place. It is not so easy to guess!

Best regards,

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

