From 9c8294a4177b2625a00f384db2395a70f320b98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 5 Apr 2016 19:59:37 +0200 Subject: [PATCH] initialize completion later --- .zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 4b3ea4a..138d410 100644 --- a/.zshrc +++ b/.zshrc @@ -46,9 +46,6 @@ find_up () { #---------------------------------- Tab completion ---------------------------- -autoload -Uz compinit -compinit - # Force a reload of completion system if nothing matched; this fixes installing # a program and then trying to tab-complete its name _force_rehash() { @@ -542,6 +539,10 @@ autoload -Uz zmv #---------------------------------- Post Setup -------------------------------- +# at last initialize completion +autoload -Uz compinit +compinit + store_last_return_value() { LAST_RETURN_VALUE="$?" }