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.
 | 
					# 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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,12 @@
 | 
				
			||||||
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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue