You are not logged in.

#1 2010-05-04 21:36:18

schen
Member
Registered: 2009-06-06
Posts: 468

[Solved]Terminal and cowsay

Is there any way to have cowsay automatically start when I open a terminal? I use urxvt.

Last edited by schen (2010-05-06 02:03:14)

Offline

#2 2010-05-04 22:31:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved]Terminal and cowsay

/etc/motd, your shell init script, a wrapper script around your terminal. Lots of ways to do it.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-05-04 22:50:08

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved]Terminal and cowsay

How do you do it via /etc/motd?

Offline

#4 2010-05-04 23:04:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Terminal and cowsay


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-05-05 00:07:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved]Terminal and cowsay

fortune -a | cowsay -f vader > /etc/motd


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2010-05-05 03:04:38

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [Solved]Terminal and cowsay

i just add this in my .bashrc

fortune | cowsay

Offline

#7 2010-05-05 03:57:51

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [Solved]Terminal and cowsay

I simply add it to my .zshrc. Output:

 _________________________ 
< Thank you for using zsh >
 ------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
>>>                                                                         [~]

hehe

Offline

#8 2010-05-06 01:55:02

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved]Terminal and cowsay

How do you add it to your zshrc? I use zsh too.

Offline

#9 2010-05-06 01:56:38

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [Solved]Terminal and cowsay

schen wrote:

How do you add it to your zshrc? I use zsh too.

.zshrc is in the home directory of your user. (Root .zshrc is in /root, your user's .zshrc is in ~/).

I have this at the top of the file:

cowsay 'Thank you for using zsh'

Offline

#10 2010-05-06 01:59:03

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved]Terminal and cowsay

Ah, thank you. By the way, I already knew where my .zshrc was. zsh ftw!

Offline

#11 2010-05-06 02:32:21

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [Solved]Terminal and cowsay

schen wrote:

Ah, thank you. By the way, I already knew where my .zshrc was. zsh ftw!

Virtual high five! big_smile

Last edited by cesura (2010-05-06 02:32:35)

Offline

Board footer

Powered by FluxBB