delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/17/11:50:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Mime-Version: 1.0 (Apple Message framework v622)
Message-Id: <1b202b8c04f84cffc518fd40037da172@kreisbote.de>
To: Cygwin Newsgroup <cygwin AT cygwin DOT com>
From: Oliver Geisen <technik AT kreisbote DOT de>
Subject: How to give commands to execute after (login)shell invoked
Date: Fri, 17 Jun 2005 17:50:00 +0200
X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 1.2 AWL AWL: From: address is in the auto white-list
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j5HFo1jQ003321

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 AT kreisbote DOT 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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019