public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Why not generate the .bashrc automatically under home diretory
@ 2015-08-25  8:47 kuaf
  2015-08-25  9:20 ` Andrey Repin
  0 siblings, 1 reply; 2+ messages in thread
From: kuaf @ 2015-08-25  8:47 UTC (permalink / raw)
  To: cygwin

Hi,

I used the latest [setup-x86_64.exe][1] 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


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.

Thanks


[1]: http://cygwin.com/setup-x86_64.exe

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Why not generate the .bashrc automatically under home diretory
  2015-08-25  8:47 Why not generate the .bashrc automatically under home diretory kuaf
@ 2015-08-25  9:20 ` Andrey Repin
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2015-08-25  9:20 UTC (permalink / raw)
  To: kuaf, cygwin

Greetings, kuaf!

> I used the latest [setup-x86_64.exe][1] 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.

/etc/nsswitch.conf:

passwd: db
group: db

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,
Andrey Repin
Tuesday, August 25, 2015 12:01:57

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-25  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-25  8:47 Why not generate the .bashrc automatically under home diretory kuaf
2015-08-25  9:20 ` Andrey Repin

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).