.zlogout 383 B

123456789
  1. # because of using 'sudo zsh', root use my $HOME as its $HOME then
  2. # while using emacs, it backups its file on my ~/.emacs-backup
  3. # defined in my ~/.emacs and i don't want this then i choose
  4. # to delete this files on logout
  5. # NB : in newer versions of find there's the option '-delete'
  6. find $HOME/.emacs-backups -not -user $USERNAME -not -type d -exec rm -f {} \; >/dev/null 2>&1