This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]