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

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 4 Jun 2004 14:55:25 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Will Senn <will_senn AT comcast DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin Here and $HOME
In-Reply-To: <40C0BFBD.8010601@comcast.net>
Message-ID: <Pine.GSO.4.58.0406041452160.2262@slinky.cs.nyu.edu>
References: <40C0BFBD DOT 8010601 AT comcast DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019