>
>
> > 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 doing this.
> > Any insights would be appreciated.
> > TIA. Best regards.
> >


Hey,
  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 more (e.g.
fortunes-off) the '-a' is unnecessary.

cheers,
Owen.

Reply via email to