Skip to content

Instantly share code, notes, and snippets.

@shanielh
Last active November 21, 2016 18:35
Show Gist options
  • Save shanielh/ca5ff87d7d7b43394224a34f0ee0d20f to your computer and use it in GitHub Desktop.
Save shanielh/ca5ff87d7d7b43394224a34f0ee0d20f to your computer and use it in GitHub Desktop.
Witch!

Usage

./witch.sh terraform

Result

 _________________________________________
/ /home/shani/Applications/terraform/terr \
\ aform                                   /
 -----------------------------------------
  \
   \
     /,
    / \
___/___\_\V/
  &(O_~)% Y
   /___\__|
  /) : (  |
  /     \ |   ldb
 '--v-v--'|

Bonus

./witch.sh terraform | lolcat

Credits

ASCII Art from asciiartist.com

##
## Witch
##
$the_cow = <<EOC;
$thoughts
$thoughts
/,
/ \\
___/___\\_\\V/
&(O_~)% Y
/___\\__|
/) : ( |
/ \\ | ldb
'--v-v--'|
EOC
#!/bin/bash
text=$(which $1)
cowsay -f $PWD/witch.cow "$text"
Copy link

ghost commented Nov 15, 2016

Perhaps this should be rewritten as a wrapper around cowsay?

@shanielh
Copy link
Author

@esteswj - I guess you can learn something new every day 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment