harpers
@visnup
HTTP (deprecated)
An interesting Harper's message of the day when I open a shell. Setup crontab to grab updates on the first of the month 10 0 1 * * curl -s https://visnup-harpers.web.val.run > $HOME/.motd ~/.config/fish/functions/fish_greeting.fish to pick a random line on new fish shell; other shell support left to the reader function fish_greeting
set line (random 1 (cat ~/.motd | wc -l))
awk "NR==$line" ~/.motd | fold -s -w (tput cols)
end
April 3, 2024