From a9d8c920b92d45b0d22eabf21331afdcfdb8acb6 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 15 Dec 2022 12:47:51 +0100 Subject: [PATCH] Update .local/bin/bofh --- dot_local/bin/executable_bofh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh index 8799521..711e373 100644 --- a/dot_local/bin/executable_bofh +++ b/dot_local/bin/executable_bofh @@ -1,7 +1,5 @@ #!/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" +excuses_file="$HOME/.local/share/zsh/bofh" num_lines=$(nl $excuses_file | tail -n 1 | awk '{print $1}') -awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' $excuses_file +awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' $excuses_file \ No newline at end of file