dotfiles/dot_local/bin/executable_bofh
eeleater 5c73c42276 Update .config/sheldon/plugins.toml
Update .config/zsh/env.zsh
Add .config/zsh/files/compinit.zsh
Add .config/zsh/files/sshcomp.zsh
Update .config/zsh/rc.zsh
Update .config/zsh/.zprofile
Remove .config/zsh/.zsh_plugins.txt
Remove .config/zsh/zsh_plugins.txt
Update .local/bin/bofh
Change attributes of .config/zsh/files/aliases.zsh
Change attributes of .config/zsh/files/distroicon.zsh
Change attributes of .config/zsh/files/keybinds.zsh
Change attributes of .config/zsh/files/transfer.zsh
Change attributes of .config/zsh/profile.zsh
2022-12-19 02:19:48 +01:00

5 lines
No EOL
195 B
Bash

#!/usr/bin/env bash
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"