updated sheldon zsh config

This commit is contained in:
Nikolas Weger 2023-05-02 10:01:13 +02:00
parent 94ef22b629
commit 5b8b457d3c
8 changed files with 13 additions and 6 deletions

View file

@ -2,4 +2,5 @@
excuses_file="$HOME/.local/share/bofh"
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"
echo -n "Daily Excuse: "
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"