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="$?" }