X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=VAbV/F48b8gVKkJM iOTZQ9L+6P+lNHiRnLZZTbc6fVfsW1bTGryJfKEuByhPOBkFf1RgoYhECxqKk+IU BUSzlfe7aMoFwGv21IedrJ8QmeLn6QA3p0ToF73lMZGT9c4VXEq3MMXCdI9ZbKa2 UH4GjPZnalkIeUEyAKYXjC0KtJo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=kQYKiUOOaYyHv5ugk8cjyv Js7Ps=; b=wikaAuOvXUD8AwYpYcB8A8+m6SGy2RmVp1B9H4Z+TbaZ47+Uwc+ou2 L/OJ2jL8PPZftg+XfbTNU9JALr9DA93211qBi9XtFLuI/0kb0ATchDeVufZWLOiX ZKO3oaPtXZD4DM4zoHOccDbzrqlnbt/l54NEOsmNE4zqu3XNEG9cc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.9 required=5.0 tests=AWL,BAYES_80,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Tue, 25 Aug 2015 12:08:21 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <682862844.20150825120821@yandex.ru> To: kuaf , cygwin AT cygwin DOT com Subject: Re: Why not generate the .bashrc automatically under home diretory In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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