1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 05:01:13 +00:00
prezto/oh-my-zsh.zsh

32 lines
832 B
Bash
Raw Normal View History

# Initializes OH MY ZSH.
# Disable color in dumb terminals.
if [[ "$TERM" == 'dumb' ]]; then
DISABLE_COLOR='true'
2011-02-27 15:13:57 +00:00
fi
# Add functions to fpath.
2011-07-28 20:59:15 +00:00
fpath=($OMZ/themes/*(/) $OMZ/plugins/${^plugins} $OMZ/functions $fpath)
2011-07-28 20:59:15 +00:00
# Load and initialize the completion system.
autoload -Uz compinit && compinit -i
2011-07-28 21:06:45 +00:00
# Source function files.
source "$OMZ/functions/init.zsh"
# Load all plugins defined in ~/.zshrc.
for plugin in $plugins; do
if [[ -f "$OMZ/plugins/$plugin/$plugin.plugin.zsh" ]]; then
source "$OMZ/plugins/$plugin/$plugin.plugin.zsh"
fi
done
# Load and run the prompt theming system.
autoload -Uz promptinit && promptinit -i
# Compile zcompdump, if modified, to increase startup speed.
if [[ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" ]] || [[ ! -f "$HOME/.zcompdump.zwc" ]]; then
zcompile "$HOME/.zcompdump"
fi