Browse Source

Run compinit before sourcing functions.

master
Sorin Ionescu 14 years ago
parent
commit
771d06ffe7
  1. 13
      oh-my-zsh.zsh

13
oh-my-zsh.zsh

@ -5,11 +5,6 @@ if [[ "$TERM" == 'dumb' ]]; then
DISABLE_COLOR='true' DISABLE_COLOR='true'
fi fi
# Load all files in $ZSH/oh-my-zsh/lib/ that end in .zsh.
for function_file in $ZSH/functions/*.zsh; do
source "$function_file"
done
# Add all defined plugins to fpath. # Add all defined plugins to fpath.
plugin=${plugin:=()} plugin=${plugin:=()}
for plugin in $plugins; do for plugin in $plugins; do
@ -17,8 +12,12 @@ for plugin in $plugins; do
done done
# Load and run compinit. # Load and run compinit.
autoload -U compinit autoload -Uz compinit && compinit -i
compinit -i
# Load all files in $ZSH/oh-my-zsh/lib/ that end in .zsh.
for function_file in $ZSH/functions/*.zsh; do
source "$function_file"
done
# Load all plugins defined in ~/.zshrc. # Load all plugins defined in ~/.zshrc.
for plugin in $plugins; do for plugin in $plugins; do

Loading…
Cancel
Save