Ted Rolle, Jr. | 7 Mar 2012 00:37
Picon

Simplicity

Here's my remind command:
rem
The program is a script at /usr/local/bin/rem
Contents:
remind -b1c+$1 ~/.remind

Invoking just 'rem' defaults to one week.  If I want two weeks, it's
rem 2

I run Ubuntu Linux 11.10.  No screen blanking here.
Most of the time I just 'rem' and get the current week's events.

Ted
Dougie Lawson | 7 Mar 2012 21:21
Picon
Gravatar

Re: Simplicity

On 6 March 2012 23:37, Ted Rolle, Jr. <stercor@...> wrote:

> Here's my remind command:
> rem
> The program is a script at /usr/local/bin/rem
> Contents:
> remind -b1c+$1 ~/.remind
>
> Invoking just 'rem' defaults to one week.  If I want two weeks, it's
> rem 2
>
> I run Ubuntu Linux 11.10.  No screen blanking here.
> Most of the time I just 'rem' and get the current week's events.
>
>
So you've replaced the /usr/local/bin/rem program that was installed as
part of the product.

I, simply added rem -t14 to my ~/.bashrc and that gets the next two weeks
of reminders (which are just details of my cycling time trials) every time
I log on to my Ubuntu 11.10 system.
Ted Rolle, Jr. | 8 Mar 2012 21:41
Picon

Re: Simplicity

Yup.  In the distributed package, rem is a symlink to remind.
I checked before doing this.
For me, it makes remind easier to use.

On 03/07/2012 03:21 PM, Dougie Lawson wrote:
> So you've replaced the /usr/local/bin/rem program that was installed
> as part of the product. 
Dave | 9 Mar 2012 02:21
Picon

Re: Simplicity

Since people are sharing some of their shortcuts, I'll make a 
contribution too.

This is the current shell function I'm using to display a monthly 
calendar.  Normally, the shell and the terminal don't always agree on 
the size of the window, especially if it's been recently resized.  So, I 
wanted something that would dynamically draw a calendar to fill the 
screen, regardless of the current screen size.

This works best using windows that are approximately square.  
Rectangular windows with one dimension much longer than the other will 
render less readable results, which is naturally expected.

LPW is lines per week and subtracting 5 could be adjusted slightly to 
taste.  My $DOTREMINDERS file is located outside the home directory and 
thus set for use with rem and other referencing.

function rcal ()
{
     MONTHS=$1;
     clear;
     eval `resize`;
     COLS=`resize|head -1|sed -e 's/^C.*=//' -e 's/;//'`;
     LINS=`resize|grep ^L|sed -e 's/^L.*=//' -e 's/;//'`;
     LPW=` expr \( $LINS / 5 \) - 5 `;
     remind -c$MONTHS -w$COLS,$LPW,1 $DOTREMINDERS | tr -d "\f"
}

-Dave

(Continue reading)


Gmane