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]

Re: Cygwin Here and $HOME


On Fri, 4 Jun 2004, Will Senn wrote:

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

Try <http://google.com/search?q=%22cygwin+prompt+here%22>.

> 2. Why not $CYGWIN_HOME?
>
> Thanks,
> Will

Because POSIX says that $HOME is the right name.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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