Newbie Alias and Profile questions

Ken Jackson cygwin@jackson.io
Mon Apr 14 05:22:00 GMT 2014


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

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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /