Browse Source

Replace redundant calls to compinit with a single call.

Pat Regan 14 years ago
parent
commit
782883b5d8
  1. 3
      lib/completion.zsh
  2. 2
      lib/key-bindings.zsh
  3. 4
      oh-my-zsh.sh
  4. 2
      plugins/brew/brew.plugin.zsh
  5. 2
      plugins/cpanm/cpanm.plugin.zsh
  6. 2
      plugins/gem/gem.plugin.zsh
  7. 2
      plugins/github/github.plugin.zsh
  8. 2
      plugins/macports/macports.plugin.zsh
  9. 2
      plugins/pip/pip.plugin.zsh
  10. 2
      plugins/vagrant/vagrant.plugin.zsh

3
lib/completion.zsh

@ -9,9 +9,6 @@ setopt always_to_end @@ -9,9 +9,6 @@ setopt always_to_end
WORDCHARS=''
autoload -U compinit
compinit -i
zmodload -i zsh/complist
## case-insensitive (all),partial-word and then substring completion

2
lib/key-bindings.zsh

@ -1,6 +1,4 @@ @@ -1,6 +1,4 @@
# TODO: Explain what some of this does..
autoload -U compinit
compinit -i
bindkey -e
bindkey '\ew' kill-region

4
oh-my-zsh.sh

@ -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
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
# Load and run compinit
autoload -U compinit
compinit -i
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ]
then

2
plugins/brew/brew.plugin.zsh

@ -1,4 +1,2 @@ @@ -1,4 +1,2 @@
# add brew completion function to path
fpath=($ZSH/plugins/brew $fpath)
autoload -U compinit
compinit -i

2
plugins/cpanm/cpanm.plugin.zsh

@ -1,4 +1,2 @@ @@ -1,4 +1,2 @@
# add cpanm completion function to path
fpath=($ZSH/plugins/cpanm $fpath)
autoload -U compinit
compinit -i

2
plugins/gem/gem.plugin.zsh

@ -1,4 +1,2 @@ @@ -1,4 +1,2 @@
# add gem completion function to path
fpath=($ZSH/plugins/gem $fpath)
autoload -U compinit
compinit -i

2
plugins/github/github.plugin.zsh

@ -1,4 +1,2 @@ @@ -1,4 +1,2 @@
# add github completion function to path
fpath=($ZSH/plugins/github $fpath)
autoload -U compinit
compinit -i

2
plugins/macports/macports.plugin.zsh

@ -8,5 +8,3 @@ alias pup="psu && puo" @@ -8,5 +8,3 @@ alias pup="psu && puo"
# add macports completion function to path
fpath=($ZSH/plugins/macports $fpath)
autoload -U compinit
compinit -i

2
plugins/pip/pip.plugin.zsh

@ -1,4 +1,2 @@ @@ -1,4 +1,2 @@
# add brew completion function to path
fpath=($ZSH/plugins/pip $fpath)
autoload -U compinit
compinit -i

2
plugins/vagrant/vagrant.plugin.zsh

@ -1,3 +1 @@ @@ -1,3 +1 @@
fpath=($ZSH/plugins/vagrant $fpath)
autoload -U compinit
compinit -i

Loading…
Cancel
Save