1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 03:29:26 +00:00

Only print fortunes in terminals

This commit is contained in:
Joel Kuzmarski
2014-05-07 09:57:21 -05:00
committed by Sorin Ionescu
parent 34a50c2550
commit 5791c07d48

View File

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