Created
May 5, 2014 00:19
-
-
Save consti/ea5cad33a0a43f8e2826 to your computer and use it in GitHub Desktop.
Genie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function genie(){ | |
query=`printf "%s+" $@` | |
echo $query | |
result=`curl -s "https://weannie.pannous.com/api?out=simple&input=$query"` | |
echo $result | |
say $result 2>/dev/null | |
} | |
alias hey=genie | |
alias how="genie how" | |
alias what="genie what" | |
alias when="genie when" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment