Fortune teller on terminal/konsole

alie

Aspiring Daemon

Reaction score: 54
Messages: 575

Hi guys,

Anyone knows how to embed fortune teller to xterm/terminal/konsole ?

-Alie
 

tangram

Aspiring Daemon

Reaction score: 76
Messages: 523

Edit your .profile and make sure it has the following:

Code:
[ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips

This works on SSH logins. Not sure if it works on terms under X11 (can check latter when I get home though).

I think you also need to install the games distribution.
 

tangram

Aspiring Daemon

Reaction score: 76
Messages: 523

If you use the t/csh shells add the code line I've posted to .login. It should work.
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 3,182
Messages: 11,426

AFAIK, this only works on login shells, not on consoles/xterms/Terminals (unless you su after that).
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,305
Messages: 38,827

It should work on xterm too but you need to start xterm with the -ls switch. Same goes for Terminal and gnome-terminal, it has to be started with the login option (for both Terminal and gnome-terminal this is a setting in the options).
 

fronclynne

Daemon

Reaction score: 179
Messages: 1,296

Without testing it myself, you might be able to add that line to your .cshrc, or whatever your inferior earth-people shell startup file is.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,305
Messages: 38,827

fronclynne said:
Without testing it myself, you might be able to add that line to your .cshrc, or whatever your inferior earth-people shell startup file is.

No need, I have tcsh as a default shell and all console logins, xterms, gnome-terminals, Terminals and whatever print a nice fortune.
 

grahamperrin

Daemon

Reaction score: 678
Messages: 2,145

Konsole​


If you have not already done so, create a non-default profile.

Edit the command to execute when new terminal sessions are created using the profile. Append:

-l

– with a space before the option.

Example:
2020-12-29 12:20:07.png
 

grahamperrin

Daemon

Reaction score: 678
Messages: 2,145

Thanks. Old, but this topic was very high within Google search results when I sought an answer.

After I gained an answer, I added to this topic – for the benefit of other people who will find the topic.
 
Top