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