Skip to content

HTTPS clone URL

Subversion checkout URL

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