mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 08:08:00 +00:00
Only print fortunes in terminals
This commit is contained in:
parent
34a50c2550
commit
5791c07d48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user