Trying to deal with compinit on zsh from brew
This commit is contained in:
		@@ -7,7 +7,12 @@ for config_file ($ZDOTDIR/lib/30-*.zsh) source $config_file
 | 
				
			|||||||
(
 | 
					(
 | 
				
			||||||
#Initalize and compile completion cache
 | 
					#Initalize and compile completion cache
 | 
				
			||||||
autoload -Uz compinit
 | 
					autoload -Uz compinit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ "$(id -u)" -ne 0 ]; then
 | 
				
			||||||
 | 
					  compinit  -i # Ignore insecure directories
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
  compinit
 | 
					  compinit
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Compile startup files
 | 
					## Compile startup files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,6 +10,7 @@ WORDCHARS=''
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
zmodload -i zsh/complist
 | 
					zmodload -i zsh/complist
 | 
				
			||||||
fpath=($fpath $ZDOTDIR/completions/)
 | 
					fpath=($fpath $ZDOTDIR/completions/)
 | 
				
			||||||
 | 
					fpath=($fpath /usr/local/share/zsh/)
 | 
				
			||||||
fpath=($fpath /usr/local/share/zsh/site-functions/)
 | 
					fpath=($fpath /usr/local/share/zsh/site-functions/)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## case-insensitive (all),partial-word and then substring completion
 | 
					## case-insensitive (all),partial-word and then substring completion
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user