Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 51 lines (41 sloc) 1.321 kB
7c94745 @vguerci [upgrade] before init (no reload needed unless oh-my-zsh.sh has been …
vguerci authored
1 # Check for updates on initial load...
2 if [ "$DISABLE_AUTO_UPDATE" = "true" ]
3 then
4 return
5 else
6 /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
7 fi
8
53abb4e @robbyrussell Moving the loading of all .zsh files into a different file so that we…
authored
9 # Initializes Oh My Zsh
10
b865f2a @kastner adding homebrew completions - and a function dir
kastner authored
11 # add a function path
1aacb74 add custom completion support
Guten authored
12 fpath=($ZSH/functions $ZSH/completions $fpath)
b865f2a @kastner adding homebrew completions - and a function dir
kastner authored
13
53abb4e @robbyrussell Moving the loading of all .zsh files into a different file so that we…
authored
14 # Load all of the config files in ~/oh-my-zsh that end in .zsh
15 # TIP: Add files you don't want in git to .gitignore
8debd09 @robbyrussell Moving all zsh config options into a lib/ subdirectory to make way fo…
authored
16 for config_file ($ZSH/lib/*.zsh) source $config_file
107322c @robbyrussell Moving some example files into custom/
authored
17
6bf906a @oknowton Optimize plugin loading so that only one call to compinit is required
oknowton authored
18 # Add all defined plugins to fpath
3cf9ab7 @robbyrussell Initial implementation of a new plugin system, so that people can man…
authored
19 plugin=${plugin:=()}
6bf906a @oknowton Optimize plugin loading so that only one call to compinit is required
oknowton authored
20 for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
3cf9ab7 @robbyrussell Initial implementation of a new plugin system, so that people can man…
authored
21
16ac094 @oknowton Moved compinit call back to oh-my-zsh.sh, after plugins are loaded
oknowton authored
22 # Load and run compinit
23 autoload -U compinit
24 compinit -i
eddab50 @evansj run update check *after* running custom configuration scripts.
evansj authored
25
3cf9ab7 @robbyrussell Initial implementation of a new plugin system, so that people can man…
authored
26 # Load all of the plugins that were defined in ~/.zshrc
796f516 @oknowton Minor reformatting
oknowton authored
27 for plugin ($plugins); do
f8aae64 @theunraveler Adding ability to override plugins from the custom directory.
theunraveler authored
28 if [ -f $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh ]; then
29 source $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh
30 elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
6bf906a @oknowton Optimize plugin loading so that only one call to compinit is required
oknowton authored
31 source $ZSH/plugins/$plugin/$plugin.plugin.zsh
32 fi
33 done
34
58a7cf1 @oknowton Move sourcing of custom to below plugins
oknowton authored
35 # Load all of your custom configurations from custom/
36 for config_file ($ZSH/custom/*.zsh) source $config_file
3cf9ab7 @robbyrussell Initial implementation of a new plugin system, so that people can man…
authored
37
8294cf4 Postponing sourcing of the theme until after local customizations
Michael Komitee authored
38 # Load the theme
6f7d51c @robbyrussell Feature: Random themes now supported. Just set your theme to 'random'…
authored
39 if [ "$ZSH_THEME" = "random" ]
40 then
41 themes=($ZSH/themes/*zsh-theme)
42 N=${#themes[@]}
5c1b341 @watsoncj Fix to random theme selection
watsoncj authored
43 ((N=(RANDOM%N)+1))
6f7d51c @robbyrussell Feature: Random themes now supported. Just set your theme to 'random'…
authored
44 RANDOM_THEME=${themes[$N]}
45 source "$RANDOM_THEME"
46 echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
47 else
48 source "$ZSH/themes/$ZSH_THEME.zsh-theme"
49 fi
50
Something went wrong with that request. Please try again.