[Home] Zsh logo

zlogin

Zsh Wizard

Download zlogin Return to Examples
  1. #
  2. # Generic .zlogin file for zsh 2.7
  3. #
  4. # .zlogin is sourced in login shells. It should
  5. # contain commands that should be executed only in
  6. # login shells. It should be used to set the terminal
  7. # type and run a series of external commands (fortune,
  8. # msgs, from, etc).
  9. #
  10. # THIS FILE IS NOT INTENDED TO BE USED AS /etc/zlogin, NOR WITHOUT EDITING
  11. return 0 # Remove this line after editing this file as appropriate
  12. clear
  13. stty dec new cr0 -tabs
  14. ttyctl -f # freeze the terminal modes... can't change without a ttyctl -u
  15. mesg y
  16. uptime
  17. fortune
  18. log
  19. from 2>/dev/null
  20. cat notes
  21. msgs -fp