Skip to content

Instantly share code, notes, and snippets.

@palmerabollo
Created June 4, 2017 17:50
Show Gist options
  • Save palmerabollo/6737ec941bfb7a2f239a19b017cde25a to your computer and use it in GitHub Desktop.
Save palmerabollo/6737ec941bfb7a2f239a19b017cde25a to your computer and use it in GitHub Desktop.
joke function for fish shell
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