Skip to content

Commit

Permalink
Ignore insecure directories in compinit
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Dec 28, 2017
1 parent d04bff1 commit 4c4f805
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/antigen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ antigen () {
if -antigen-interactive-mode; then
TRACE "Gonna create compdump file @ env-setup" COMPDUMP
autoload -Uz compinit
compinit -d "$ANTIGEN_COMPDUMP"
compinit -i -d "$ANTIGEN_COMPDUMP"
compdef _antigen antigen
else
(( $+functions[antigen-ext-init] )) && antigen-ext-init
Expand Down Expand Up @@ -790,7 +790,7 @@ antigen-apply () {
# the one that actually initializes completions.
TRACE "Gonna create compdump file @ apply" COMPDUMP
autoload -Uz compinit
compinit -d "$ANTIGEN_COMPDUMP"
compinit -i -d "$ANTIGEN_COMPDUMP"

# Apply all `compinit`s that have been deferred.
local cdef
Expand Down Expand Up @@ -1820,7 +1820,7 @@ antigen () {
typeset -gaU fpath path
fpath+=(${_fpath[@]}) path+=(${_PATH[@]})
_antigen_compinit () {
autoload -Uz compinit; compinit -d "$ANTIGEN_COMPDUMP"; compdef _antigen antigen
autoload -Uz compinit; compinit -i -d "$ANTIGEN_COMPDUMP"; compdef _antigen antigen
add-zsh-hook -D precmd _antigen_compinit
}
autoload -Uz add-zsh-hook; add-zsh-hook precmd _antigen_compinit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/apply.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ antigen-apply () {
# the one that actually initializes completions.
TRACE "Gonna create compdump file @ apply" COMPDUMP
autoload -Uz compinit
compinit -d "$ANTIGEN_COMPDUMP"
compinit -i -d "$ANTIGEN_COMPDUMP"

# Apply all `compinit`s that have been deferred.
local cdef
Expand Down
2 changes: 1 addition & 1 deletion src/ext/cache.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ antigen () {
typeset -gaU fpath path
fpath+=(${_fpath[@]}) path+=(${_PATH[@]})
_antigen_compinit () {
autoload -Uz compinit; compinit -d "$ANTIGEN_COMPDUMP"; compdef _antigen antigen
autoload -Uz compinit; compinit -i -d "$ANTIGEN_COMPDUMP"; compdef _antigen antigen
add-zsh-hook -D precmd _antigen_compinit
}
autoload -Uz add-zsh-hook; add-zsh-hook precmd _antigen_compinit
Expand Down
2 changes: 1 addition & 1 deletion src/lib/env-setup.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
if -antigen-interactive-mode; then
TRACE "Gonna create compdump file @ env-setup" COMPDUMP
autoload -Uz compinit
compinit -d "$ANTIGEN_COMPDUMP"
compinit -i -d "$ANTIGEN_COMPDUMP"
compdef _antigen antigen
else
(( $+functions[antigen-ext-init] )) && antigen-ext-init
Expand Down

0 comments on commit 4c4f805

Please sign in to comment.