public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Jackson <cygwin@jackson.io>
To: cygwin@cygwin.com
Subject: Re: Newbie Alias and Profile questions
Date: Mon, 14 Apr 2014 05:22:00 -0000	[thread overview]
Message-ID: <534B7077.3030503@jackson.io> (raw)
In-Reply-To: <52F979B0.2080604@ptd.net>

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

      parent reply	other threads:[~2014-04-14  5:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11  1:26 Mike Rushton
2014-02-11  1:38 ` Larry Hall (Cygwin)
2014-02-11  2:35   ` Mike Rushton
2014-02-12  9:08     ` Mike Rushton
2014-02-12 12:47       ` Andrey Repin
2014-02-11  2:14 ` Christopher Faylor
2014-02-16 10:09 ` Thorsten Kampe
2014-04-14  5:22 ` Ken Jackson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534B7077.3030503@jackson.io \
    --to=cygwin@jackson.io \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).