Browse Source

Only print fortunes in terminals

master
Joel Kuzmarski 10 years ago committed by Sorin Ionescu
parent
commit
5791c07d48
  1. 6
      runcoms/zlogin

6
runcoms/zlogin

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

Loading…
Cancel
Save