Skip to content

Commit

Permalink
*/.zshrc: Don't measure the time of git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Oct 13, 2019
1 parent 5a9d76f commit dd0e9da
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions zplug/.zshrc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions zplugin-light/.zshrc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions zplugin-load/.zshrc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions zplugin-omz/.zshrc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions zplugin-turbo/.zshrc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit dd0e9da

Please sign in to comment.