Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ri usage tidbit

0 views
Skip to first unread message

Kevin Ballard

unread,
Sep 25, 2005, 3:57:27 AM9/25/05
to
Here's a handy alias I use for nicer ri output, I just thought I'd
share it with all of you:

alias ri='RI="${RI} -f ansi" LESS="${LESS}-f-R" ri'

Basically it tells ri to spit out ANSI-formatted text and tells less to
not complain about the ANSI escape codes. It still respects any
existing values of $RI and $LESS.

I hope this is useful to someone.

--
"And remember, no matter where you go, there you are."
-- Buckaroo Banzai

Stefan Lang

unread,
Sep 25, 2005, 4:15:41 AM9/25/05
to
On Sunday 25 September 2005 10:01, Kevin Ballard wrote:
> Here's a handy alias I use for nicer ri output, I just thought I'd
> share it with all of you:
>
> alias ri='RI="${RI} -f ansi" LESS="${LESS}-f-R" ri'
>
> Basically it tells ri to spit out ANSI-formatted text and tells
> less to not complain about the ANSI escape codes. It still respects
> any existing values of $RI and $LESS.
>
> I hope this is useful to someone.

Yes! Thank you!

--
Stefan


Gavin Kistner

unread,
Sep 25, 2005, 4:32:45 PM9/25/05
to
On Sep 25, 2005, at 2:01 AM, Kevin Ballard wrote:
> alias ri='RI="${RI} -f ansi" LESS="${LESS}-f-R" ri'

Very sexy, in bash. Can a *nix guru translate that to tcsh?

Logan Capaldo

unread,
Sep 25, 2005, 10:47:01 PM9/25/05
to

Theretically:
alias ri='( setenv RI "$RI -f ansi"; setenv LESS "$LESS -f -R"; ri $* )'

However....it doesn't seem to be working right. Maybe you can play
with it, and figure it out.


0 new messages