Skip to content

ericdke/pnutsay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

pnutsay

This is a wrapper for cowsay dedicated to pnut.io, made during the 2018/05/05 hackathon.

Install

Download or clone then cd in the folder.

Do chmod +x ./pnutsay if necessary, then do ./pnutsay -i to install the custom .cow file and the pnutsay executable.

If all goes well, you're ready to go.

If nothing works, you'll have to install cowsay, copy the pnut.cow file in cowsay's "cows" folder, and copy the pnutsay executable in a relevant location such as "/usr/local/bin" or equivalent.

Usage

Classic

pnutsay Hello pnut :)

Note that due to bugs, you can't pass other arguments to the classic pnutsay, only words to be used in the cow's bubble.

Dedicated to pnutprinter

pnutsay -p Hello pnut :)

Note that also due to bugs, you can pass other arguments to the pnutprinter pnutsay. Example: pnutsay -p "These pnuts are salty..." -s

Tricks

Copy to clipboard

On a Mac, add " | pbcopy" at the end of the command to send the result to the clipboard.

pnutsay -p Hello pnut :) | pbcopy

Some applications add a space character at the end of the text when pasted, please remember to remove it before posting for pnutprinter. The last character has to be the asterisk.

Send to Apero

If Apero is running, send directly the pnutsay content to a new post with this command:

open "apero://post=$(pnutsay Hello from Apero and pnutsay)"

Screenshot

pnutsay -p "Hello from pnutsay, guys\!"

pnutsay

Licence

The content of this repository is licenced under the MIT licence.

About

cowsay for pnut.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages