home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d061650
)
Print random quote after status on profile load
author
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 17 Jan 2022 16:00:41 +0000
(11:00 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 17 Jan 2022 16:00:41 +0000
(11:00 -0500)
home/.profile
patch
|
blob
|
blame
|
history
diff --git
a/home/.profile
b/home/.profile
index
3c0745e
..
b01c106
100644
(file)
--- 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
This page took
0.034147 seconds
and
4
git commands to generate.