delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/14/01:22:28

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=WePzz6TInNlsyc84I9lel9EmS16nJfSpWGJk0ZfoCUy
VT+rT2SUBuuHUWrT8VXFkI6vKn/tRNvuF4KRUWS5h1Zll/kryAa9zkv1ZWBHVnQh
ZjojR6ho1/+CtVNhwzYlc+XmhCEeEqQtFuU2fSpcZpOndDJDNSyNB3QmegrpJ8pw
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=VAxX44szMfWzAKJTcatnD6mycfQ=; b=CTZxm5l2WDQjz4twM
rKrrzJoVvXo+qYVmvVit3spVB4EgoremV+iPjPu/3vvmPhVZoVsBGgorVxu/ULMo
QsOx6u/XUuUpbD/jTUAnKJ2aUUOfFfzZORdm1jqnbX6jQRnbionnnDWoZXmTDmK5
hL9hvsaSzHVxE/l9QkIseVOcU8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL autolearn=no version=3.3.2
X-HELO: vms173009pub.verizon.net
Message-id: <534B7077.3030503@jackson.io>
Date: Mon, 14 Apr 2014 01:21:59 -0400
From: Ken Jackson <cygwin AT jackson DOT io>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Newbie Alias and Profile questions
References: <52F979B0 DOT 2080604 AT ptd DOT net>
In-reply-to: <52F979B0.2080604@ptd.net>
X-IsSubscribed: yes

On 02/10/2014 08:15 PM, Mike Rushton wrote:
> I am trying to put an alias in a .bashrc
>
> alias clear='printf "\033c"'

Sometimes 'clear' is installed and sometimes it's not, so
I put this line in my ~/.bashrc file on all Linux, BSD and
Cygwin systems:

test -z "$(type -t clear)"  &&  alias clear='echo -n -e "\e[2J\e[H"'

-Ken

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019