Re: [OT] How to add fortune output to terminal

2008-04-18 Thread Bob Proulx
Martin Schulze wrote: > Please always Cc to me when replying to me on the lists. > ... > Another way to do this is: > > if [ -n "$PS1" -a "$TERM" != "dumb" ]; then > # aliases and the like for interactive use > else > # non-intreactive > fi > > TERM=dumb is set by dumb terminal emulations suc

Re: [OT] How to add fortune output to terminal

2008-04-16 Thread Martin Schulze
Bob Proulx wrote: > s. keeling wrote: > > Another common practice is to set PS1 in .bash_profile, then call > > .bashrc from .bash_profile. > > if [ ! -z "$PS1" ]; then > > The PS1 is set by default for interactive shells and not set for > non-interactive shells. So the test for $PS1 works witho

Re: [OT] How to add fortune output to terminal

2008-04-16 Thread s. keeling
Bob Proulx <[EMAIL PROTECTED]>: > s. keeling wrote: > > Another common practice is to set PS1 in .bash_profile, then call > > .bashrc from .bash_profile. > > if [ ! -z "$PS1" ]; then > > The PS1 is set by default for interactive shells and not set for > non-interactive shells. So the test for

Re: [OT] How to add fortune output to terminal

2008-04-16 Thread Bob Proulx
s. keeling wrote: > Another common practice is to set PS1 in .bash_profile, then call > .bashrc from .bash_profile. > if [ ! -z "$PS1" ]; then The PS1 is set by default for interactive shells and not set for non-interactive shells. So the test for $PS1 works without needing to set it. This is i

Re: [OT] How to add fortune output to terminal

2008-04-15 Thread s. keeling
NN_il_Confusionario <[EMAIL PROTECTED]>: > On Tue, Apr 15, 2008 at 02:08:02AM +0200, s. keeling wrote: > > .bash_profile is for setting up global env vars. .bashrc is for doing > > things for interactive ("login") sessions. > > this is completely different from what I understand by reading man

Re: [OT] How to add fortune output to terminal

2008-04-14 Thread NN_il_Confusionario
On Tue, Apr 15, 2008 at 02:08:02AM +0200, s. keeling wrote: > .bash_profile is for setting up global env vars. .bashrc is for doing > things for interactive ("login") sessions. this is completely different from what I understand by reading man bash (section FILES, and also search for "INVOCATION"

Re: [OT] How to add fortune output to terminal

2008-04-14 Thread Vikki Roemer
On Mon, Apr 14, 2008 at 8:08 PM, s. keeling <[EMAIL PROTECTED]> wrote: > Vikki Roemer <[EMAIL PROTECTED]>: > > > In my experience, I've never had fortune break scp, but maybe I've > > just been lucky. > > > > But, if it does cause problems, just remove it and add it to > > .bash_profile in

Re: [OT] How to add fortune output to terminal

2008-04-14 Thread s. keeling
Vikki Roemer <[EMAIL PROTECTED]>: > On Sun, Apr 13, 2008 at 2:27 AM, Bob Proulx <[EMAIL PROTECTED]> wrote: > > Angus Auld wrote: > > > Would someone be able to advise me as to what is a > > > safe method to add a fortune command to my .bashrc > > > file so as to have fortune output in my termin

Re: [OT] How to add fortune output to terminal

2008-04-14 Thread Vikki Roemer
On Sun, Apr 13, 2008 at 2:27 AM, Bob Proulx <[EMAIL PROTECTED]> wrote: > Angus Auld wrote: > > Would someone be able to advise me as to what is a > > safe method to add a fortune command to my .bashrc > > file so as to have fortune output in my terminal @ > > login? > > I've googled this prett

Re: [OT] How to add fortune output to terminal

2008-04-13 Thread Andrei Popescu
On Sun, Apr 13, 2008 at 12:27:15AM -0600, Bob Proulx wrote: > Angus Auld wrote: > > Would someone be able to advise me as to what is a > > safe method to add a fortune command to my .bashrc > > file so as to have fortune output in my terminal @ > > login? > > I've googled this pretty extensively, a

Re: [OT] How to add fortune output to terminal

2008-04-12 Thread Bob Proulx
Angus Auld wrote: > Would someone be able to advise me as to what is a > safe method to add a fortune command to my .bashrc > file so as to have fortune output in my terminal @ > login? > I've googled this pretty extensively, and have found a > few methods, but also warnings that certain processes

Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Owen Townend
> > > And for real technicolor stuff, hunt for the kernelnewbies fortunes > file; selected quotes from lkml: > > - > "I want you guys to look at your computer screen, imagining the worst > monster you can (the cacodeamon from Quake will do, just make him > hairie

Re: [OT] How to add fortune output to terminal

2008-04-11 Thread s. keeling
Owen Townend <[EMAIL PROTECTED]>: > >An extract from my .bashrc > > if [ -x /usr/games/fortune ]; then >echo; /usr/games/fortune -a; echo > fi > >Also, IIRC, the default 'fortunes-mod' package includes only a single data > file which has no 'offensive' fortunes, so unless you add

Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Owen Townend
> > > > Greetings, > > Would someone be able to advise me as to what is a > > safe method to add a fortune command to my .bashrc > > file so as to have fortune output in my terminal @ > > login? > > I've googled this pretty extensively, and have found > > a > > few methods, but also warnings that c

Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Angus Auld
--- Angus Auld <[EMAIL PROTECTED]> wrote: > Greetings, > Would someone be able to advise me as to what is a > safe method to add a fortune command to my .bashrc > file so as to have fortune output in my terminal @ > login? > I've googled this pretty extensively, and have found > a > few methods,

Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Paul Cartwright
On Fri April 11 2008, Angus Auld wrote: > Would someone be able to advise me as to what is a > safe method to add a fortune command to my .bashrc > file so as to have fortune output in my terminal @ > login? add these lines to your ~/.bashrc echo echo "fortune" echo fortune -a echo -- Paul Cartw

[OT] How to add fortune output to terminal

2008-04-11 Thread Angus Auld
Greetings, Would someone be able to advise me as to what is a safe method to add a fortune command to my .bashrc file so as to have fortune output in my terminal @ login? I've googled this pretty extensively, and have found a few methods, but also warnings that certain processes can be broken by do