From 36f30e244d493c46f5b5238deb8632ffc33fe56c Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 15 Dec 2022 12:40:49 +0100 Subject: [PATCH] Update .local/bin/bofh --- dot_local/bin/executable_bofh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh index 57031bd..8799521 100644 --- a/dot_local/bin/executable_bofh +++ b/dot_local/bin/executable_bofh @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +# get the file from here: https://gist.githubusercontent.com/chuckwagoncomputing/ff980f81482b5894c824/raw/c54c87a325454a5ae91b6254fa4c30121e0891f5/excuses.txt + excuses_file="/usr/share/doc/bofh/excuses" num_lines=$(nl $excuses_file | tail -n 1 | awk '{print $1}') awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' $excuses_file