delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/04/14:30:48

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
Message-ID: <40C0BFBD.8010601@comcast.net>
Date: Fri, 04 Jun 2004 13:30:21 -0500
From: Will Senn <will_senn AT comcast DOT net>
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Cygwin Here and $HOME
X-Enigmail-Version: 0.84.0.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
All,

I have a couple of questions for y'all, but first the background:

I like to be able to right click a folder in explorer and have a menu
item : Cygwin Here that opens a Cygwin command prompt at the folder
that I have selected. I wrote this registry file to accomplish the
task and it works. However, I had to edit /etc/profile and comment out
cd $HOME - I added a line pwd to print the current directory as well.
This is great when I am using the Cygwin Here action, but it messes
with the normal shortcut as well (it starts up in /usr/bin because the
cd $HOME was commented out).  Ideally, if I use the Cygwin Here
action, it would start me up in whatever folder I had selected and
when I double click the shortcut it would start me in /home/wsenn.
This brings up the second problem which is $HOME, my $HOME variable
points to d:\Documents and Settings\wsenn, not /home/wsenn (my
preference since the other is cluttered with junk for XP).

Here's the registry export:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere]
@="Cygwin Prompt Here"
"EditFlags"=hex:01,00,00,00

[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere\command]
@="D:\\cygwin\\bin\\bash.exe --login -i"

My questions are:
1. Is there a better way of doing the Cygwin Prompt Here/Normal
Shortcut startup?
2. Why not $CYGWIN_HOME?

Thanks,

Will

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFAwL+9BvT4ZqqGK0sRAs0sAKDIbjiyGH/kVAB4cUR9QnRhe0F8CACfbOSQ
3v5N9l2gzGjmLlH8ol1m5Fs=
=9VlP
-----END PGP SIGNATURE-----



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