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

Cygwin Here and $HOME


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


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