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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=XlyqUrc1xEoHUe/or8QLkQW6kiSJ2ByTe9c96ekhgnE7BD+FlLAaE S5FcxF/r/3LSt1N1lU8TvCtbFtHePGphjeBdBHz6YKLaqZJkxnqLcAPBJ1gGRYJV dv8rV99LP37GMFRZfTKnbkPl11G4ptIIYPSRvpWPezdaXrnUXUG7Ds= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=HScRxpSCELTEyiTjqkonH2KLwdg=; b=S8lkmlOq7HNgBvCr8F8/rV0DNCAQ qO9cPinv6Y/XcliOfuHcN4Yb4CeD6oUq+m1pi0E23XQjREeiWar866UdpTRgi7PW KtAx5rIXIBlZtwkoYwJmwJxqCl9wXc76C6WNo09lb6AgC/ZQVJ6V0rTsgzQT1tAN JVvKGjnf47KwgzI= 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=-2.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: Newbie Alias and Profile questions Date: Sun, 16 Feb 2014 10:08:49 +0100 Lines: 32 Message-ID: References: <52F979B0 DOT 2080604 AT ptd DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-IsSubscribed: yes * Mike Rushton (Mon, 10 Feb 2014 20:15:28 -0500) > I am trying to put an alias in a .bashrc > > alias clear='printf "\033c"' clear is part of the ncurses package, so I would simply install this. > But what .bashrc do I put this in ? in /ect/skel or the one my user > directory. I put this code in and it seems to get overwritten. > I don't understand what I am doing wrong. /etc/skel is a template directory for new users. > It is a minor thing that i can't clear the screen, but i want to work at > this and try to fix this. > > Then I want to add a script to my profile. but what one the > .profile or .bash_profile ? The two bash specific files you need to know are .bash_profile and .bashrc. Bash is different to other shells in that it will only read one of those two depending on whether bash is run as a login shell or not. The recommended way is to source .bashrc from .bash_profile (this is already the Cygwin default) and to leave .bash_profile empty. Put everything you need into .bashrc. Forget about .profile. It's only needed for backward compatibility and not an official bash file. Thorsten -- 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