From a3ee7a6d5cda9683d1b4a67b39055b3fb169c289 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 17 Jan 2022 11:00:41 -0500 Subject: [PATCH] Print random quote after status on profile load --- home/.profile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1