Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Fri, 13 Sep 2002 13:54:13 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: RE: Open bash at the current explorer directory? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII A small note: c:\cygwin\cygwin.bat runs "bash --login -i", which reads /etc/profile. The default /etc/profile contains a "cd $HOME" command. If you really want bash to open in the current directory, use "bash --login --noprofile -i" or just "bash -i". Both of these come with caveats, though: the former may not set up the right environment (including the prompt), and the latter will not log you in (I'm not sure exactly what the caveat here is -- maybe some shares will not be accessible or something). Igor On Fri, 13 Sep 2002, Tim Beuman wrote: > In Explorer: > > Tools->Folder Options > select tab: "File Types" > select Extensions: "N/A, File Folder" (use "N/A, Drive for setting the same > action at drive level) > click Advanced > click New > enter "Cygwin shell" or whatever you want to name it in the Action field > enter "C:\cygwin\cygwin.bat" or something like this in the "Application used > to perform action" field > click OK several times till you are back in the Explorer > done! > > Tim > > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of John Daniel Doucette > Sent: Friday, September 13, 2002 06:24 AM > To: cygwin AT cygwin DOT com > Subject: Open bash at the current explorer directory? > > Hello, > > I am using Win2000 Pro, SP3. Is there a way to invoke an interactive bash > shell at a particular directory, without using a .bashrc or similar file? > I.e. on the command lie alone? The --login and -c options appear to be > mutually exclusive. I would like to be able browse quickly to a directory > with explorer, option/right click on the directory, then select a custom > "open with cygwin" option, and have the bash shell open at that > directory. Has anyone tried this? > > =================================== > John Daniel Doucette, Sr. Software Designer -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! It took the computational power of three Commodore 64s to fly to the moon. It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/