This is the mail archive of the
mailing list for the Cygwin project.
RE: Open bash at the current explorer directory?
- From: Gunnar Boström <Gunnar dot Bostrom at kiconsulting dot se>
- To: <cygwin at cygwin dot com>
- Date: Wed, 25 Sep 2002 09:27:36 +0200
- Subject: RE: Open bash at the current explorer directory?
This works fine except that I get the windows short form of the
directories in the CFH variable.
I've tried filtering through cygpath but no luck.
> -----Original Message-----
> From: Frantisek Dufka [mailto:email@example.com]
> Sent: den 18 september 2002 10:56
> To: firstname.lastname@example.org
> Subject: Re: Open bash at the current explorer directory?
> I don't know how to do it without using .bashrc, but this
> works for me
> (current cygwin, NT 4.0)
> Registry key contains:
> D:\cygwin\bin\rxvt.exe -sb -sr -sl 16384 -fn fixedsys -fg
> gray -bg black
> -e /bin/env CFH="%1" /bin/bash --login
> .bashrc contains
> if [ "$CFH" != "" ] ; then
> cd "$CFH"
> unset CFH
> No temporary files, bash.exe or .bash_profile is not executed twice.
> Also looks like cygpath -u is not needed, DOS paths seem to
> work in cd
> * John Daniel Doucette <email@example.com> [13-09-02 15:23]:
> > 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
> > 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
> > 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?
> Read this from the archive.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html