From 5dc84926bee0554163330e5e87e5741d552fa8dc Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 18 Mar 2018 15:52:15 -0700 Subject: [PATCH] Add zlogin to build zcompdump.zwc. --- dotfiles/zlogin | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 dotfiles/zlogin diff --git a/dotfiles/zlogin b/dotfiles/zlogin new file mode 100644 index 0000000..72ca9b0 --- /dev/null +++ b/dotfiles/zlogin @@ -0,0 +1,8 @@ +# Execute code that does not affect the current session in the background. +{ + # Compile the completion dump to increase startup speed. + zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" + if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then + zcompile "$zcompdump" + fi +} &!