Install zgen at interactive shell startup
This commit is contained in:
parent
92ede195f7
commit
af1c96773d
|
@ -1,8 +1,5 @@
|
||||||
export ZGEN_DIR="$XDG_CACHE_HOME/zgen"
|
export ZGEN_DIR="$XDG_CACHE_HOME/zgen"
|
||||||
export ZGEN_SOURCE="$ZGEN_DIR/zgen.zsh"
|
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
|
for dir in $XDG_CONFIG_HOME/*/bin(N); do
|
||||||
export PATH="$dir:$PATH"
|
export PATH="$dir:$PATH"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
if [[ ! -d "$ZGEN_DIR" ]]; then
|
||||||
|
git clone https://github.com/tarjoilija/zgen "$ZGEN_DIR"
|
||||||
|
fi
|
||||||
source $ZGEN_SOURCE
|
source $ZGEN_SOURCE
|
||||||
|
|
||||||
if ! zgen saved; then
|
if ! zgen saved; then
|
||||||
|
|
Loading…
Reference in a new issue