1
0
Fork 0

Only print fortunes in terminals

pull/604/head
Joel Kuzmarski 11 years ago
parent af003d83c5
commit e9e87f6895

@ -16,7 +16,9 @@
# Print a random, hopefully interesting, adage.
if (( $+commands[fortune] )); then
fortune -a
print
if [[ -t 0 || -t 1 ]]; then
fortune -a
print
fi
fi

Loading…
Cancel
Save