terminal quotes+ANSI pictures

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
red123
Level 2
Level 2
Posts: 65
Joined: Mon Sep 27, 2010 1:46 am

terminal quotes+ANSI pictures

Post by red123 »

I am wondering where can I find the bash shell code / program to generate the quotes+ANSI pictures every time I open the terminal? I want to port it to tcsh which is what I am using because I am more familiar with its syntax.
vincent
Level 8
Level 8
Posts: 2217
Joined: Tue Feb 09, 2010 4:10 am

Re: terminal quotes+ANSI pictures

Post by vincent »

Bash reads either /etc/bash.bashrc or ~/.bashrc at startup, and it'll show those quotes (fortunes) and the cow picture (cowsay) if the following is present in either file:

Code: Select all

if [ -x /usr/games/fortune ]; then
/usr/games/fortune | /usr/games/cowsay -n; echo
fi
So all you have to do is to find the equivalent config file that tcsh uses, and dump the above code into that file. I've never used tcsh, but I'd presume that you'd be looking for either /etc/csh.cshrc or ~/.cshrc.
Debian Testing x64/LM9 Main x64/Windows 7 x64 - LG R580 laptop w/ Intel Core 2 Duo T6500 2.1 GHz, 4 GB DDR2 RAM, Nvidia Geforce G 105M, Ralink rt2860 802.11n, 300 GB WD HD 5400 rpm
red123
Level 2
Level 2
Posts: 65
Joined: Mon Sep 27, 2010 1:46 am

Re: terminal quotes+ANSI pictures

Post by red123 »

Thanks. I did not know what exactly the program was called so I didn't know where to start looking in the system bash.bashrc file =)
Post Reply

Return to “Software & Applications”