dotfiles/zsh/zlogin
James Patrick 829f30540e Fixed issue with autocompletes not being loaded
The issue was stemming from racecondition betwwen then completion
function which uses the complete file, and the zsh_users/completions
plug that defined them.

Also relocated transient -> cache.
2020-08-21 18:04:38 -04:00

17 lines
429 B
Bash

# vim: syn=zsh
# Executes commands at login post-zshrc.
#
# Execute code that does not affect the current session in the background.
( autoload -Uz colors && colors ) &!
{
# Compile the completion dump to increase startup speed.
#
zcompdump="${ZSH_CACHE}/zcompdump"
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi
} &!
env_loader zlogin