Fix zgen init+install (ZGEN_DIR=>ZGEN_SOURCE) & reformat zshrc
This commit is contained in:
parent
954223873c
commit
7378e260a8
|
@ -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
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
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
|
||||
echo "Creating zgen save"
|
||||
_cache_clear
|
||||
|
||||
zgen load hlissner/zsh-autopair autopair.zsh
|
||||
zgen load zsh-users/zsh-history-substring-search
|
||||
zgen load zdharma/history-search-multi-word
|
||||
zgen load zsh-users/zsh-completions src
|
||||
zgen load junegunn/fzf shell # completions
|
||||
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
|
||||
zgen load junegunn/fzf shell # completions
|
||||
|
||||
if [[ -z $SSH_CONNECTION ]]; then
|
||||
zgen load zdharma/fast-syntax-highlighting
|
||||
fi
|
||||
if [[ -z $SSH_CONNECTION ]]; then
|
||||
zgen load zdharma/fast-syntax-highlighting
|
||||
fi
|
||||
|
||||
zgen save
|
||||
zgen save
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue