Skip to content

Grohon/fortune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Fortune Cookie

Display fortune cookie message using curl.

Demo: curl -4 [hash404.com/fortune/] (http://hash404.com/fortune/)

Creating alias in bash:

Add this line to your bash alias file:

$ alias fortune='curl -s http://example.com/fortune/'

Integrating cowsay with fortune.

####To install cowsay use: On Ubuntu/Debian:

$ sudo apt-get install cowsay

On CentOS/Fedora:

$ sudo yum install cowsay

For Windows, try this:

$ npm install -g cowsay

Finally, add this line to your bash alias file:

$ alias fortune='curl -s http://example.com/fortune/ | cowsay'

Message source: [Fortune Cookie Message] (http://fortunecookiemessage.com)

About

Display fortune cookie message

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages