diff --git a/runcoms/zlogin b/runcoms/zlogin index 32f28cfb..3aa97905 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -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