This is the mail archive of the
mailing list for the Cygwin project.
Re: Why not generate the .bashrc automatically under home diretory
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: kuaf <kuaf dot lee at gmail dot com>, cygwin at cygwin dot com
- Date: Tue, 25 Aug 2015 12:08:21 +0300
- Subject: Re: Why not generate the .bashrc automatically under home diretory
- Authentication-results: sourceware.org; auth=none
- References: <CAFLqW4M0OJUnkDsdh_oYfU+3p-B5n8TbLNotTv6wNtfHQiUA-w at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
> I used the latest [setup-x86_64.exe] to set up cygwin environment.
> I wanted my /home directory to point to c:\Users rather than the
> out-of-the-box home directory created by cygwin.
> My current solution is to just mount it in fstab with the following line:
> c:/Users /home ntfs binary,posix=0,nouser
And what if your profile directory name doesn't match your profile name?
Do it the right way.
db_home: desc windows
Oh, and don't forget 'noacl' on /cygdrive.
It is a VERY bad idea to stomp your profile directory with strict POSIX
permissions. Not every application is ready to accept them, you may even lose
the ability to open documents through associations.
> After refresh installing and change the fstab above, then startup mintty.
> But, I didn't see .bashrc/.profile/.inputrc/.bash_profile was
> generated automatically under home directory. I mean the `/etc/skel/*`
> files would be copied to home direcotry.
This is a standard POSIX behavior, if user directory exists, it will never be
touched. If you need the skeleton files updated, you can do it yourself.
If you need default files distributed, place them into default user profile.
With best regards,
Tuesday, August 25, 2015 12:01:57
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple