This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How to give commands to execute after (login)shell invoked
- From: Oliver Geisen <technik at kreisbote dot de>
- To: Cygwin Newsgroup <cygwin at cygwin dot com>
- Date: Fri, 17 Jun 2005 17:50:00 +0200
- Subject: How to give commands to execute after (login)shell invoked
Hello,
there is a neat trick to expand window's context menu (right-click)
with commands.
I would like to add something like "Open BASH here..." so if i
right-click on an
Folder in Explorer i can open a bash shell and it's already cd'ed into
the path.
I know where the registry must be patched but i struggle around with
the options to bash.
In the reg-key the windows-variable %L is expanded to the path, but
where can i include
it so bash will do an cd to it after invocation ?
i tried: bash.exe -i --login -c "cd %L"
but shell will terminate as soon as cd-command is executed :-(
Any hints from you, folks ?
With best regards,
Oliver Geisen
---------------------------------------
Systemadministrator
Kreisboten Verlag Mühlfellner KG
Phone: +49 881/686-63
Fax: +40 881/686-74
Mail: technik@kreisbote.de
---------------------------------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/