Browse code

Replace redundant calls to compinit with a single call.

Pat Regan authored on 08/04/2011 at 14:12:22
Showing 10 changed files
... ...
@@ -9,9 +9,6 @@ setopt always_to_end
9 9
 
10 10
 WORDCHARS=''
11 11
 
12
-autoload -U compinit
13
-compinit -i
14
-
15 12
 zmodload -i zsh/complist
16 13
 
17 14
 ## case-insensitive (all),partial-word and then substring completion
... ...
@@ -1,6 +1,4 @@
1 1
 # TODO: Explain what some of this does..
2
-autoload -U compinit
3
-compinit -i
4 2
 
5 3
 bindkey -e
6 4
 bindkey '\ew' kill-region
... ...
@@ -17,6 +17,10 @@ for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh
17 17
 # Load the theme
18 18
 source "$ZSH/themes/$ZSH_THEME.zsh-theme"
19 19
 
20
+# Load and run compinit
21
+autoload -U compinit
22
+compinit -i
23
+
20 24
 # Check for updates on initial load...
21 25
 if [ "$DISABLE_AUTO_UPDATE" = "true" ]
22 26
 then
... ...
@@ -1,4 +1,2 @@
1 1
 # add brew completion function to path
2 2
 fpath=($ZSH/plugins/brew $fpath)
3
-autoload -U compinit
4
-compinit -i
... ...
@@ -1,4 +1,2 @@
1 1
 # add cpanm completion function to path
2 2
 fpath=($ZSH/plugins/cpanm $fpath)
3
-autoload -U compinit
4
-compinit -i
... ...
@@ -1,4 +1,2 @@
1 1
 # add gem completion function to path
2 2
 fpath=($ZSH/plugins/gem $fpath)
3
-autoload -U compinit
4
-compinit -i
... ...
@@ -1,4 +1,2 @@
1 1
 # add github completion function to path
2 2
 fpath=($ZSH/plugins/github $fpath)
3
-autoload -U compinit
4
-compinit -i
... ...
@@ -8,5 +8,3 @@ alias pup="psu && puo"
8 8
 
9 9
 # add macports completion function to path
10 10
 fpath=($ZSH/plugins/macports $fpath)
11
-autoload -U compinit
12
-compinit -i
... ...
@@ -1,4 +1,2 @@
1 1
 # add brew completion function to path
2 2
 fpath=($ZSH/plugins/pip $fpath)
3
-autoload -U compinit
4
-compinit -i
... ...
@@ -1,3 +1 @@
1 1
 fpath=($ZSH/plugins/vagrant $fpath)
2
-autoload -U compinit
3
-compinit -i