zlogin 606 B

1234567891011121314151617181920212223
  1. #
  2. # Executes commands at login post-zshrc.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. # Execute code that does not affect the current session in the background.
  8. {
  9. # Compile the completion dump to increase startup speed.
  10. zcompdump="${XDG_CACHE_HOME:-$HOME/.cache}/prezto/zcompdump"
  11. if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
  12. if command mkdir "${zcompdump}.zwc.lock" 2>/dev/null; then
  13. zcompile "$zcompdump"
  14. command rmdir "${zcompdump}.zwc.lock" 2>/dev/null
  15. fi
  16. fi
  17. } &!
  18. # Local Variables:
  19. # mode: sh
  20. # End: