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. # Move ZDOTDIR from $HOME to reduce dotfile pollution.
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export ZGEN_DIR="$XDG_CACHE_HOME/zgen" export ZGEN_SOURCE="$XDG_CACHE_HOME/zgen"
# paths # paths
typeset -gU cdpath fpath mailpath path typeset -gU cdpath fpath mailpath path

View file

@ -1,22 +1,22 @@
export ZGEN_AUTOLOAD_COMPINIT=0 export ZGEN_AUTOLOAD_COMPINIT=0
AUTOPAIR_INHIBIT_INIT=1 AUTOPAIR_INHIBIT_INIT=1
_load_repo tarjoilija/zgen $ZGEN_DIR zgen.zsh _load_repo tarjoilija/zgen $ZGEN_SOURCE zgen.zsh
if ! zgen saved; then if ! zgen saved; then
echo "Creating zgen save" 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 zsh-users/zsh-history-substring-search
zgen load zdharma/history-search-multi-word zgen load zdharma/history-search-multi-word
zgen load zsh-users/zsh-completions src zgen load zsh-users/zsh-completions src
zgen load junegunn/fzf shell # completions zgen load junegunn/fzf shell # completions
if [[ -z $SSH_CONNECTION ]]; then if [[ -z $SSH_CONNECTION ]]; then
zgen load zdharma/fast-syntax-highlighting zgen load zdharma/fast-syntax-highlighting
fi fi
zgen save zgen save
fi fi

View file

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