Fix zgen init+install (ZGEN_DIR=>ZGEN_SOURCE) & reformat zshrc

This commit is contained in:
Henrik Lissner 2017-12-06 13:56:31 -05:00
parent 954223873c
commit 7378e260a8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 15 additions and 15 deletions

View file

@ -3,7 +3,7 @@ source $(cd ${${(%):-%x}:A:h}/../.. && pwd -P)/env
# Move ZDOTDIR from $HOME to reduce dotfile pollution.
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export ZGEN_DIR="$XDG_CACHE_HOME/zgen"
export ZGEN_SOURCE="$XDG_CACHE_HOME/zgen"
# paths
typeset -gU cdpath fpath mailpath path

View file

@ -1,12 +1,12 @@
export ZGEN_AUTOLOAD_COMPINIT=0
AUTOPAIR_INHIBIT_INIT=1
_load_repo tarjoilija/zgen $ZGEN_DIR zgen.zsh
_load_repo tarjoilija/zgen $ZGEN_SOURCE zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
.cache-clear
_cache_clear
zgen load hlissner/zsh-autopair autopair.zsh
zgen load hlissner/zsh-autopair autopair.zsh develop
zgen load zsh-users/zsh-history-substring-search
zgen load zdharma/history-search-multi-word
zgen load zsh-users/zsh-completions src

View file

@ -19,8 +19,8 @@ install() {
}
update() {
if [[ -e $ZGEN_DIR/zgen.zsh ]]; then
source $ZGEN_DIR/zgen.zsh
if [[ -e $ZGEN_SOURCE/zgen.zsh ]]; then
source $ZGEN_SOURCE/zgen.zsh
zgen selfupdate
zgen update
fi