1 2 3 4 5 6
#!/bin/csh # Print a fortune cookie for login shells: if ( { tty --silent } ) then >& /dev/null echo "" ; fortune fortunes fortunes2 linuxcookie ; echo "" endif