So one of the servers I am using has freebsd installed and it uses by default the tcsh shell. This has a pretty nice feature. Every time I log in via ssh it prints a tip. This called a lot my attention and I don’t know if this exists for the bash shell and if so how to activate it.
Here is the last one I got:
FreeBSD 9.0-RELEASE-p3 (GENERIC) #0: XXXXX
m5
Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ '
-- Mathieu <mathieu@hal.interactionvirtuelle.com>
$
The fortune command is not shell specific. It is generally called via rc at startup if it is configured. The fortune man(6) page describes several ways to call fortune with different files. Best of luck 😉