You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
940 B
37 lines
940 B
14 years ago
|
# Initializes OH MY ZSH.
|
||
15 years ago
|
|
||
14 years ago
|
# Disable color in dumb terminals.
|
||
|
if [[ "$TERM" == 'dumb' ]]; then
|
||
13 years ago
|
COLOR='false'
|
||
14 years ago
|
fi
|
||
|
|
||
14 years ago
|
# Add functions to fpath.
|
||
14 years ago
|
fpath=($OMZ/themes/*(/) $OMZ/plugins/${^plugins} $OMZ/functions $fpath)
|
||
15 years ago
|
|
||
14 years ago
|
# Load and initialize the completion system.
|
||
14 years ago
|
autoload -Uz compinit && compinit -i
|
||
|
|
||
14 years ago
|
# Source function files.
|
||
|
source "$OMZ/functions/init.zsh"
|
||
15 years ago
|
|
||
13 years ago
|
# Source plugins defined in ~/.zshrc.
|
||
14 years ago
|
for plugin in $plugins; do
|
||
13 years ago
|
if [[ -f "$OMZ/plugins/$plugin/init.zsh" ]]; then
|
||
|
source "$OMZ/plugins/$plugin/init.zsh"
|
||
14 years ago
|
fi
|
||
|
done
|
||
|
|
||
13 years ago
|
# Set PATH for Mac OS X GUI applications (requires re-login).
|
||
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||
|
launchctl setenv PATH "$PATH" &!
|
||
|
fi
|
||
|
|
||
14 years ago
|
# Load and run the prompt theming system.
|
||
|
autoload -Uz promptinit && promptinit -i
|
||
14 years ago
|
|
||
13 years ago
|
# Compile zcompdump, if modified, to increase startup speed.
|
||
|
if [[ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" ]] || [[ ! -f "$HOME/.zcompdump.zwc" ]]; then
|
||
|
zcompile "$HOME/.zcompdump"
|
||
|
fi
|
||
14 years ago
|
|