From dd0e9da7f3a0e6003e3ccb5bb0b0cf016bb184de Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sun, 13 Oct 2019 19:18:44 +0200 Subject: [PATCH] */.zshrc: Don't measure the time of git clone --- zplug/.zshrc | 8 ++++---- zplugin-light/.zshrc | 6 +++--- zplugin-load/.zshrc | 6 +++--- zplugin-omz/.zshrc | 6 +++--- zplugin-turbo/.zshrc | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/zplug/.zshrc b/zplug/.zshrc index d6e5374..5e6a7c1 100644 --- a/zplug/.zshrc +++ b/zplug/.zshrc @@ -1,14 +1,14 @@ -# Start measuring time, in general with microsecond accuracy -typeset -F4 SECONDS=0 - ZPLUG_HOME=$PWD/_zplug ZPFX=$ZPLUG_HOME/polaris if [[ ! -d $ZPLUG_HOME/bin ]]; then - git clone https://github.com/zplug/zplug $ZPLUG_HOME/bin + git clone --depth 1 https://github.com/zplug/zplug $ZPLUG_HOME/bin fi +# Start measuring time, in general with microsecond accuracy +typeset -F4 SECONDS=0 + source $ZPLUG_HOME/bin/init.zsh # Assign each zsh session an unique ID, available in diff --git a/zplugin-light/.zshrc b/zplugin-light/.zshrc index dec9d57..3a818e5 100644 --- a/zplugin-light/.zshrc +++ b/zplugin-light/.zshrc @@ -1,6 +1,3 @@ -# Start measuring time, in general with microsecond accuracy -typeset -F4 SECONDS=0 - typeset -gA ZPLGM ZPLGM[HOME_DIR]=$PWD/_zplugin ZPFX=${ZPLGM[HOME_DIR]}/polaris @@ -9,6 +6,9 @@ if [[ ! -d ${ZPLGM[HOME_DIR]}/bin ]]; then git clone --depth 1 https://github.com/zdharma/zplugin "${ZPLGM[HOME_DIR]}/bin" fi +# Start measuring time, in general with microsecond accuracy +typeset -F4 SECONDS=0 + source "${ZPLGM[HOME_DIR]}/bin/zplugin.zsh" # Ensure that zplugin is compiled diff --git a/zplugin-load/.zshrc b/zplugin-load/.zshrc index f133559..b8ec7d7 100644 --- a/zplugin-load/.zshrc +++ b/zplugin-load/.zshrc @@ -1,6 +1,3 @@ -# Start measuring time, in general with microsecond accuracy -typeset -F4 SECONDS=0 - typeset -gA ZPLGM ZPLGM[HOME_DIR]=$PWD/_zplugin ZPFX=${ZPLGM[HOME_DIR]}/polaris @@ -9,6 +6,9 @@ if [[ ! -d ${ZPLGM[HOME_DIR]}/bin ]]; then git clone --depth 1 https://github.com/zdharma/zplugin "${ZPLGM[HOME_DIR]}/bin" fi +# Start measuring time, in general with microsecond accuracy +typeset -F4 SECONDS=0 + source "${ZPLGM[HOME_DIR]}/bin/zplugin.zsh" # Ensure that zplugin is compiled diff --git a/zplugin-omz/.zshrc b/zplugin-omz/.zshrc index bda3ed1..5c197d9 100644 --- a/zplugin-omz/.zshrc +++ b/zplugin-omz/.zshrc @@ -1,6 +1,3 @@ -# Start measuring time, in general with microsecond accuracy -typeset -F4 SECONDS=0 - typeset -gA ZPLGM ZPLGM[HOME_DIR]=$PWD/_zplugin ZPFX=${ZPLGM[HOME_DIR]}/polaris @@ -9,6 +6,9 @@ if [[ ! -d ${ZPLGM[HOME_DIR]}/bin ]]; then git clone --depth 1 https://github.com/zdharma/zplugin "${ZPLGM[HOME_DIR]}/bin" fi +# Start measuring time, in general with microsecond accuracy +typeset -F4 SECONDS=0 + source "${ZPLGM[HOME_DIR]}/bin/zplugin.zsh" # Ensure that zplugin is compiled diff --git a/zplugin-turbo/.zshrc b/zplugin-turbo/.zshrc index 78c528d..28cf8b9 100644 --- a/zplugin-turbo/.zshrc +++ b/zplugin-turbo/.zshrc @@ -1,6 +1,3 @@ -# Start measuring time, in general with microsecond accuracy -typeset -F4 SECONDS=0 - typeset -gA ZPLGM ZPLGM[HOME_DIR]=$PWD/_zplugin ZPFX=${ZPLGM[HOME_DIR]}/polaris @@ -9,6 +6,9 @@ if [[ ! -d ${ZPLGM[HOME_DIR]}/bin ]]; then git clone --depth 1 https://github.com/zdharma/zplugin "${ZPLGM[HOME_DIR]}/bin" fi +# Start measuring time, in general with microsecond accuracy +typeset -F4 SECONDS=0 + source "${ZPLGM[HOME_DIR]}/bin/zplugin.zsh" # Ensure that zplugin is compiled