Install zgen at interactive shell startup

This commit is contained in:
Henrik Lissner 2020-01-03 06:49:34 -05:00
parent 92ede195f7
commit af1c96773d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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