Jump to content

alfred workflow for cowsay


Recommended Posts

Hi,

 

  sometime back, I built a workflow for cowsay ASCII image generator and wanted to share it here, in case someone finds it funny/useful. Please share suggestions/improvements. 

 

Overview

This workflow triggers the cowsay terminal command with user provided message and displays the output as a large banner which covers the entire screen. Additionally the cowsay output gets copied to clipboard. See it in action here.

 

Prerequisite

This workflow assumes that cowsay is already installed and available at /usr/local/bin/cowsay. If its not already installed, please install it using brew and then import this workflow.

 

Installation Instruction

Just download cowsay.alfredworkflow from this repository and click on it. Assuming alfred is already installed, it will prompt you to install this workflow. Follow the instructions and this should get installed without any issues.

 

Troubleshooting

If it does not display the cowsay output, it means the workflow did not find cowsay executable at /usr/local/bin/cowsay. In that case, you have two options:

  1. Make sure to install cowsay at /usr/local/bin/cowsay
  2. If you are comfortable editing alfred workflow, then edit the workflow and goto \bin\bash step and edit the script to point to the installation location of cowsay executable as depicted in following two screenshots.
    • STEP 1 - choose the /bin/bash step choose the step
    • STEP 2 - edit the script to point to cowsay executable location and save the workflow edit the screipt to point to cpwsay location and save

 

Thanks,

Raja

 

Edited by Raja Senapati
added installation details
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...