terminal quotes+ANSI pictures

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
red123

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
vincent

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.
red123

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 =)
Locked

Return to “Software & Applications”