oh-my-zsh.sh 775 B

123456789101112131415161718192021222324252627282930
  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. # Load all of the plugins that were defined in ~/.zshrc
  10. plugin=${plugin:=()}
  11. for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh
  12. # Load the theme
  13. source "$ZSH/themes/$ZSH_THEME.zsh-theme"
  14. # Load and run compinit
  15. autoload -U compinit
  16. compinit -i
  17. # Check for updates on initial load...
  18. if [ "$DISABLE_AUTO_UPDATE" = "true" ]
  19. then
  20. return
  21. else
  22. /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
  23. fi