Re: Window shortcut to launch a Mintty login bash on a given directory

2010-08-02 Thread Andy Koppe
On 1 August 2010 15:16, JOHNER Jean 066030 wrote: > 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\]

Re: Window shortcut to launch a Mintty login bash on a given directory

2010-08-01 Thread JOHNER Jean 066030
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 liki

Re: Window shortcut to launch a Mintty login bash on a given directory

2010-07-31 Thread Andy Koppe
On 31 July 2010 14:45, JOHNER Jean 066030 wrote: > The last problem is that the window title, for the "My documents/foobar" > directory becomes: > /cygdrive/d/Documents and settings/User_name/My documents/foobar > which iconifies to "/cygdrive/d/Docu...", the latter indication being > the same for

Re: Window shortcut to launch a Mintty login bash on a given directory

2010-07-31 Thread JOHNER Jean 066030
On 29 July 2010 08:49, Andy Koppe wrote: >> I also tried to add >> >> C:\cygwin\home\User_name\foobar >> >> 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 va

Re: Window shortcut to launch a Mintty login bash on a given directory

2010-07-29 Thread Andy Koppe
On 29 July 2010 08:49, JOHNER Jean 066030 wrote: > 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 assume

RE: Window shortcut to launch a Mintty login bash on a given directory

2010-07-29 Thread JOHNER Jean 066030
ch reads a specified .rc file? Best regards Jean Johner -Message d'origine- De : JOHNER Jean 066030 Envoyé : jeudi 29 juillet 2010 09:50 À : 'cygwin@cygwin.com' Objet : Window shortcut to launch a Mintty login bash on a given directory Hello, Putting the following command l

Window shortcut to launch a Mintty login bash on a given directory

2010-07-29 Thread JOHNER Jean 066030
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 foo