blob: 13ae92db05fe74f423706ac9827da06d1f0b6769 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
quotes_path="${XDG_DATA_HOME:-"$HOME/.local/share"}/total_war_quotes"
< "$quotes_path" sed 's/^$/#/' |
tr '#' '\0' |
shuf --zero-terminated --head-count 1 |
sed '/^$/ d' |
tr -d '\0' |
cowsay -W 80 -n
|