File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 2525# Disable automatic oh-my-zsh update
2626zstyle ' :omz:update' mode disabled
2727
28+ # Disable some useless features
29+ DISABLE_MAGIC_FUNCTIONS=" true"
30+ DISABLE_COMPFIX=" true"
31+
2832# Enable oh-my-zsh
2933source $ZSH /oh-my-zsh.sh
3034
@@ -628,6 +632,16 @@ zle -N accept-line reset-prompt-and-accept-line
628632
629633# ###############################################################################
630634
635+ autoload -Uz compinit
636+
637+ if [[ " $( date +' %j' ) " != " $( stat -f ' %Sm' -t ' %j' ~ /.zcompdump 2> /dev/null) " ]] ; then
638+ compinit
639+ else
640+ compinit -C
641+ fi
642+
643+ # ###############################################################################
644+
631645# Include local zshrc
632646if [[ -f $HOME /.zshrc.local ]] ; then
633647 source $HOME /.zshrc.local
You can’t perform that action at this time.
0 commit comments