oh-my-zsh.sh 945 B

12345678910111213141516171819202122232425262728293031323334353637
  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. # Add all defined plugins to fpath
  8. plugin=${plugin:=()}
  9. for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
  10. # Load and run compinit
  11. autoload -U compinit
  12. compinit -i
  13. # Load all of your custom configurations from custom/
  14. for config_file ($ZSH/custom/*.zsh) source $config_file
  15. # Load all of the plugins that were defined in ~/.zshrc
  16. for plugin ($plugins); do
  17. if [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
  18. source $ZSH/plugins/$plugin/$plugin.plugin.zsh
  19. fi
  20. done
  21. # Load the theme
  22. source "$ZSH/themes/$ZSH_THEME.zsh-theme"
  23. # Check for updates on initial load...
  24. if [ "$DISABLE_AUTO_UPDATE" = "true" ]
  25. then
  26. return
  27. else
  28. /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
  29. fi