terminal quotes+ANSI pictures
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
terminal quotes+ANSI pictures
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: terminal quotes+ANSI pictures
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:
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.
Code: Select all
if [ -x /usr/games/fortune ]; then
/usr/games/fortune | /usr/games/cowsay -n; echo
fi
Re: terminal quotes+ANSI pictures
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 =)