This file contains hidden or 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
| if (( $+commands[fortune] && $+commands[gum] && $+commands[pastel])) ; then | |
| local c1=$(pastel random --number=1 | pastel format hex) | |
| local t1=$(pastel textcolor "${c1}" | pastel format hex) | |
| local c2=$(pastel lighten "0.2" "${c1}" | pastel format hex) | |
| local t2=$(pastel textcolor "${c2}" | pastel format hex) | |
| local c3=$(pastel darken "0.1" "${c2}" | pastel format hex) | |
| fortune | \ | |
| gum style \ | |
| --background="${c1}" \ | |
| --border="rounded" \ |