diff --git a/fish/functions/motd.fish b/fish/functions/motd.fish index 3f9dd57..2bd1a3c 100644 --- a/fish/functions/motd.fish +++ b/fish/functions/motd.fish @@ -3,6 +3,8 @@ function motd --description "Message of the day!" if contains -- '--chuck-norris' $argv set daily_msg (curl -s 'https://api.chucknorris.io/jokes/random' | jq --raw-output '.value') + else if contains -- '--dad-joke' $argv + set daily_msg (curl -H 'Accept: text/plain' 'https://icanhazdadjoke.com/' 2>/dev/null) else set daily_msg (fortune -a) end