Created
June 4, 2017 17:50
-
-
Save palmerabollo/6737ec941bfb7a2f239a19b017cde25a to your computer and use it in GitHub Desktop.
joke function for fish shell
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 joke | |
if not type -q jq | |
echo 'JQ is not installed' | |
end | |
curl -s -H "Accept: application/json" https://icanhazdadjoke.com/ | jq -r .joke | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment