public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David Standish <dnstandish@gmail.com>
To: Lester Ingber <ingber@alumni.caltech.edu>, cygwin@cygwin.com
Subject: Re: dirsfile incorrect on startup?
Date: Sat, 12 Nov 2022 12:40:03 -0500	[thread overview]
Message-ID: <CADX9Ks-3+_2=-aMCq_JD6=axZvyxH69b22iKjUUBNUqec7OmKw@mail.gmail.com> (raw)
In-Reply-To: <Y2/PWmoFvhPmuAhX@ingber.com>

On 11/12/22, Lester Ingber via Cygwin <cygwin@cygwin.com> wrote:
> When I login to my cygwin I see
> /cygdrive/c/Users/ingber/My: Command not found.
>
> I have tried to edit my ~/.dirsfile (in /home/ingber/ which is where I
> wish to start) but those changes do not persist between login sessions?
>
> The problem likely stems from may of my files now in a G: drive (a
> virtual drive added by Google) that starts at C:/Users/ingber (which I do
> not want to land in on login).


It may be that windows sets HOMEDRIVE env to G: when you're connected.

I don't know the preferred solution.  Here are a couple things that
may work. You can set HOME env to override,  You can also configure
your user home in /etc/passwd.   I see mention of setting db_home in
/etc/nsswitch.conf.

David

  reply	other threads:[~2022-11-12 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-12 16:52 Lester Ingber
2022-11-12 17:40 ` David Standish [this message]
2022-11-15 16:09 ` Andrey Repin
2022-11-15 18:12 Lester Ingber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADX9Ks-3+_2=-aMCq_JD6=axZvyxH69b22iKjUUBNUqec7OmKw@mail.gmail.com' \
    --to=dnstandish@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=ingber@alumni.caltech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).