From: Siraaj Khandkar Date: Mon, 17 Jan 2022 16:00:41 +0000 (-0500) Subject: Print random quote after status on profile load X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=a3ee7a6d5cda9683d1b4a67b39055b3fb169c289;p=khome.git Print random quote after status on profile load --- diff --git a/home/.profile b/home/.profile index 3c0745e..b01c106 100644 --- a/home/.profile +++ b/home/.profile @@ -15,3 +15,11 @@ then fi status + +printf '\n' + +awk \ + -v RS='' \ + 'BEGIN {srand()} {fortunes[n++] = $0} END {print fortunes[int(n * rand())]}' \ + ~/arc/doc/fortunes/orangebook_.txt \ +| fold -s