Commit 993e05da authored by Pat Regan's avatar Pat Regan
Browse files

Replace redundant calls to compinit with a single call.

parent 2e949296
...@@ -9,9 +9,6 @@ setopt always_to_end ...@@ -9,9 +9,6 @@ setopt always_to_end
WORDCHARS='' WORDCHARS=''
autoload -U compinit
compinit -i
zmodload -i zsh/complist zmodload -i zsh/complist
## case-insensitive (all),partial-word and then substring completion ## case-insensitive (all),partial-word and then substring completion
......
# TODO: Explain what some of this does.. # TODO: Explain what some of this does..
autoload -U compinit
compinit -i
bindkey -e bindkey -e
bindkey '\ew' kill-region bindkey '\ew' kill-region
......
...@@ -17,6 +17,10 @@ for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh ...@@ -17,6 +17,10 @@ for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh
# Load the theme # Load the theme
source "$ZSH/themes/$ZSH_THEME.zsh-theme" source "$ZSH/themes/$ZSH_THEME.zsh-theme"
# Load and run compinit
autoload -U compinit
compinit -i
# Check for updates on initial load... # Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ] if [ "$DISABLE_AUTO_UPDATE" = "true" ]
then then
......
# add brew completion function to path # add brew completion function to path
fpath=($ZSH/plugins/brew $fpath) fpath=($ZSH/plugins/brew $fpath)
autoload -U compinit
compinit -i
# add cpanm completion function to path # add cpanm completion function to path
fpath=($ZSH/plugins/cpanm $fpath) fpath=($ZSH/plugins/cpanm $fpath)
autoload -U compinit
compinit -i
# add gem completion function to path # add gem completion function to path
fpath=($ZSH/plugins/gem $fpath) fpath=($ZSH/plugins/gem $fpath)
autoload -U compinit
compinit -i
# add github completion function to path # add github completion function to path
fpath=($ZSH/plugins/github $fpath) fpath=($ZSH/plugins/github $fpath)
autoload -U compinit
compinit -i
...@@ -8,5 +8,3 @@ alias pup="psu && puo" ...@@ -8,5 +8,3 @@ alias pup="psu && puo"
# add macports completion function to path # add macports completion function to path
fpath=($ZSH/plugins/macports $fpath) fpath=($ZSH/plugins/macports $fpath)
autoload -U compinit
compinit -i
# add brew completion function to path # add brew completion function to path
fpath=($ZSH/plugins/pip $fpath) fpath=($ZSH/plugins/pip $fpath)
autoload -U compinit
compinit -i
fpath=($ZSH/plugins/vagrant $fpath) fpath=($ZSH/plugins/vagrant $fpath)
autoload -U compinit
compinit -i
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment