This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie Alias and Profile questions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]