Created
December 19, 2022 01:00
-
-
Save batunpc/d5773b24beaaaabb0c022d2a6381cbd1 to your computer and use it in GitHub Desktop.
Poem typewriter with animation in your terminal
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
poem() { | |
# get random poem from api | |
local poem=$(curl -s https://poetrydb.org/random | jq -r '.[0].lines[]') | |
# print poem | |
echo | |
autoload -U colors | |
colors | |
echo $bold_color "$poem" | pv -qL 7 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment