[Home] Zsh logo

dot.zlogout

Zsh Wizard

Download dot.zlogout Return to Examples
  1. #
  2. # .zlogout: for logging out from login shells
  3. # Written by Deborah Pickett <debbiep@csse.monash.edu.au>
  4. # with large wads (or not) taken from others.
  5. #
  6. # This file is sourced when logging out from a login shell (zsh -l).
  7. # goofey signoff 1-liner, chosen randomly.
  8. if [[ ${+USE_GOOFEY} -eq 1 && "$(goofey -lq)" -eq 1 ]]
  9. then
  10. # Disable the signoff line until I can find some witty one-liners.
  11. goofey -x
  12. # Pick a random signoff line.
  13. #randline=$(( $RANDOM % $(wc -l < $HOME/etc/1lines) + 1 ))
  14. #goofey -x - "`sed -n ${randline}p $HOME/etc/1lines`"
  15. fi