Print random quote after status on profile load
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 17 Jan 2022 16:00:41 +0000 (11:00 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 17 Jan 2022 16:00:41 +0000 (11:00 -0500)
home/.profile

index 3c0745e..b01c106 100644 (file)
@@ -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
This page took 0.034147 seconds and 4 git commands to generate.