Update .local/bin/bofh
This commit is contained in:
parent
36f30e244d
commit
a9d8c920b9
1 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# get the file from here: https://gist.githubusercontent.com/chuckwagoncomputing/ff980f81482b5894c824/raw/c54c87a325454a5ae91b6254fa4c30121e0891f5/excuses.txt
|
excuses_file="$HOME/.local/share/zsh/bofh"
|
||||||
|
|
||||||
excuses_file="/usr/share/doc/bofh/excuses"
|
|
||||||
num_lines=$(nl $excuses_file | tail -n 1 | awk '{print $1}')
|
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
|
Loading…
Add table
Reference in a new issue