From af1c96773da6d338941a375bf40b6bae143802ad Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 3 Jan 2020 06:49:34 -0500 Subject: [PATCH] Install zgen at interactive shell startup --- config/zsh/.zshenv | 3 --- config/zsh/.zshrc | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/zsh/.zshenv b/config/zsh/.zshenv index 003d1443..c08f2c07 100644 --- a/config/zsh/.zshenv +++ b/config/zsh/.zshenv @@ -1,8 +1,5 @@ export ZGEN_DIR="$XDG_CACHE_HOME/zgen" export ZGEN_SOURCE="$ZGEN_DIR/zgen.zsh" -if [[ ! -d "$ZGEN_DIR" ]]; then - git clone https://github.com/tarjoilija/zgen "$ZGEN_DIR" -fi for dir in $XDG_CONFIG_HOME/*/bin(N); do export PATH="$dir:$PATH" diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 085ff8ad..1849c4bf 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -1,3 +1,6 @@ +if [[ ! -d "$ZGEN_DIR" ]]; then + git clone https://github.com/tarjoilija/zgen "$ZGEN_DIR" +fi source $ZGEN_SOURCE if ! zgen saved; then