This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: chere not seeing my preferred $HOME
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 30 Jun 2016 19:55:31 +0000
- Subject: RE: chere not seeing my preferred $HOME
- Authentication-results: sourceware.org; auth=none
- References: <trinity-63d84bf2-3537-4dc9-bd09-fd297e17bc5b-1467314772125 at 3capp-gmx-bs40>
From: Rainer Blome
>
> Hi Kenneth,
Hello. http://www.cygwin.com/acronyms/#PCYMTNQREAIYR
(Actually, I don't know how to do that, so I do it manually.)
> not sure what you are aiming for here.
I simply want chere to run my .profile before it presents
me with the bash prompt.
> The purpose of `chere` is, quoting from its help,
> to "to right click a folder in Windows Explorer and
> open a Cygwin shell *in that folder*."
>
> Your `.bash_profile` should run in whatever directory
> it is called from. To refer to a file in your $HOME,
> explicitly do so (by prefixing any path with $HOME).
I guess the problem is knowing how to tell chere what
my Cygwin $HOME is.
> > Hoping I can keep the two domains separate.
>
> What kind of domains do you mean?
>
> > chere> echo $HOME; cygpath -w $HOME
> > /cygdrive/c/Users/KNellis
> > C:\Users\KNellis
Using the word "domain" generically, there is my Windows
domain ($HOME is C:\Users\KNellis) and my Cygwin domain
($HOME is C:\cygwin\home\knellis). chere appears to be using
my Windows domain, which doesn't have a .bash_profile,
but I'd like it to use my Cygwin domain.
> How come you have differing values for $HOME in some contexts?
Different domains.
> Do you have two separate Cygwin installs?
No.
> Two home directories?
Yes, a Windows home and a Cygwin home, as demonstrated.
> Where does the "chere" prompt stem from?
Just for this posting I manually entered: PS1='chere> '
--Ken Nellis