Skip to content

Commit

Permalink
Merge remote-tracking branch 'toadjaune/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ev0rtex committed Feb 11, 2018
2 parents 00acbb2 + 8d08dc1 commit 7f18082
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion base/core/load.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ __zplug::core::load::from_cache()

# Plugins with defer-level set
source "$_zplug_cache[defer_1_plugin]"
compinit -d "$ZPLUG_HOME/zcompdump"
if [[ ${UID} -eq 0 ]] && [[ -n ${SUDO_USER} ]]; then
# Disable file permissions check since we did it when starting the shell executing sudo
compinit -u -d "$ZPLUG_HOME/zcompdump"
else
compinit -d "$ZPLUG_HOME/zcompdump"
fi
if (( $_zplug_boolean_true[(I)$is_verbose] )); then
__zplug::io::print::f \
--zplug "$fg[yellow]Run compinit$reset_color\n"
Expand Down

0 comments on commit 7f18082

Please sign in to comment.