Re: Getting fortune to run when opening a terminal
- From: Andrei Popescu <andreimpopescu@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 19:24:38 +0300
On Sun, Mar 30, 2008 at 11:17:21AM -0300, Eduardo M KALINOWSKI wrote:
andy wrote:
Hi all
Under Slackware, whenever I would open up konsole (a terminal app), so a
fortune would be displayed before the typical Bash prompt.
Is there a way of setting it up under Debian so that it can do the same
thing?
Just put a call to the fortune program in ~/.bash_profile .
.bash_profile is run only on login shells. Use .bashrc is you want it
for *every* console:
,----[ from my .bashrc ]
| echo
| echo "Fortune cookie:"
| echo
| fortune -a
| echo
`----
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
Attachment:
signature.asc
Description: Digital signature
- References:
- Getting fortune to run when opening a terminal
- From: andy
- Re: Getting fortune to run when opening a terminal
- From: Eduardo M KALINOWSKI
- Getting fortune to run when opening a terminal
- Prev by Date: Re: Getting fortune to run when opening a terminal
- Next by Date: Re: Cron Daemon backup message too big
- Previous by thread: Re: Getting fortune to run when opening a terminal
- Next by thread: bits/news from the users of Debian?
- Index(es):
Relevant Pages
- Re: Getting fortune to run when opening a terminal
... Under Slackware, whenever I would open up konsole (a terminal app), so a fortune
would be displayed before the typical Bash prompt. ... To UNSUBSCRIBE, email to
debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... (Debian-User) - Re: [PHP] POST + QUERY
... the above echo still returns nothing. ... Agora com fortune: ...
"<agaffney> I want to be so bleeding edge that I cut myself! ... (php.general) - Getting fortune to run when opening a terminal
... Under Slackware, whenever I would open up konsole (a terminal app), so a fortune
would be displayed before the typical Bash prompt. ... To UNSUBSCRIBE, email to
debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... (Debian-User) - Re: SLRN random-sig files, found this but stilll
... but you could go nuts and set up a cron job that runs every minute if ... I
don't know what mail client is involved here, ... you can use the built in functionality
of 'fortune' and create your own ... echo `fortune /home/joehill/sigs/quotes` ...
(Debian-User) - Re: [OT] How to add fortune output to terminal
... safe method to add a fortune command to my .bashrc ... file so as to have fortune
output in my terminal @ ... Your .bashrc should be completely silent. ... echo
"Fortune cookie:" ... (Debian-User)