This is the mail archive of the 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]

RE: Open bash at the current explorer directory?

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).

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: []On Behalf
> Of John Daniel Doucette
> Sent: Friday, September 13, 2002 06:24 AM
> To:
> 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

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Bug reporting:

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