oh-my-zsh.sh 945 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Initializes Oh My Zsh
  2. # add a function path
  3. fpath=($ZSH/functions $fpath)
  4. # Load all of the config files in ~/oh-my-zsh that end in .zsh
  5. # TIP: Add files you don't want in git to .gitignore
  6. for config_file ($ZSH/lib/*.zsh) source $config_file
  7. # Load all of your custom configurations from custom/
  8. for config_file ($ZSH/custom/*.zsh) source $config_file
  9. # Add all defined plugins to fpath
  10. plugin=${plugin:=()}
  11. for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
  12. # Load and run compinit
  13. autoload -U compinit
  14. compinit -i
  15. # Load all of the plugins that were defined in ~/.zshrc
  16. for plugin ($plugins)
  17. do
  18. if [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]
  19. then
  20. source $ZSH/plugins/$plugin/$plugin.plugin.zsh
  21. fi
  22. done
  23. # Load the theme
  24. source "$ZSH/themes/$ZSH_THEME.zsh-theme"
  25. # Check for updates on initial load...
  26. if [ "$DISABLE_AUTO_UPDATE" = "true" ]
  27. then
  28. return
  29. else
  30. /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
  31. fi