ZGEN_SOURCE => ZGEN_DIR

This commit is contained in:
Henrik Lissner 2017-12-07 12:40:55 -05:00
parent bd772ca834
commit 476111f759
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 2 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_SOURCE="$XDG_CACHE_HOME/zgen" export ZGEN_DIR="$XDG_CACHE_HOME/zgen"
# paths # paths
typeset -gU cdpath fpath mailpath path typeset -gU cdpath fpath mailpath path
@ -11,6 +11,7 @@ path=( $XDG_BIN_HOME $DOTFILES/bin $DOTFILES_DATA/*.topic/bin(N) $path )
fpath=( $ZDOTDIR/functions $fpath ) fpath=( $ZDOTDIR/functions $fpath )
# envvars # envvars
export SHELL=$(command -v zsh)
export LANG=${LANG:-en_US.UTF-8} export LANG=${LANG:-en_US.UTF-8}
export PAGER=less export PAGER=less
export LESS='-R -i -w -M -z-4' export LESS='-R -i -w -M -z-4'

View file

@ -1,7 +1,7 @@
export ZGEN_AUTOLOAD_COMPINIT=0 export ZGEN_AUTOLOAD_COMPINIT=0
AUTOPAIR_INHIBIT_INIT=1 AUTOPAIR_INHIBIT_INIT=1
_load_repo tarjoilija/zgen $ZGEN_SOURCE zgen.zsh _load_repo tarjoilija/zgen $ZGEN_DIR zgen.zsh
if ! zgen saved; then if ! zgen saved; then
echo "Creating zgen save" echo "Creating zgen save"
_cache_clear _cache_clear