shell/zsh: read ZSH_CACHE var; fix fasd completion widgets

This commit is contained in:
Henrik Lissner 2018-02-24 05:18:43 -05:00
parent 9e2c119c40
commit 42d858ca7a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 6 additions and 6 deletions

View file

@ -4,6 +4,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_DIR="$XDG_CACHE_HOME/zgen"
export ZSH_CACHE="$XDG_CACHE_HOME/zsh"
# paths # paths
typeset -gU cdpath fpath mailpath path typeset -gU cdpath fpath mailpath path

View file

@ -19,11 +19,14 @@ if ! zgen saved; then
zgen save zgen save
fi fi
_load shell/zsh/prompt.zsh
_load shell/zsh/config.zsh _load shell/zsh/config.zsh
_load shell/zsh/completion.zsh _load shell/zsh/completion.zsh
_load shell/zsh/keybinds.zsh _load shell/zsh/keybinds.zsh
_load shell/zsh/prompt.zsh
#
autoload -Uz compinit && compinit -d $ZSH_CACHE/zcompdump
_load_all aliases.zsh
# #
export _FASD_DATA="$XDG_CACHE_HOME/fasd" export _FASD_DATA="$XDG_CACHE_HOME/fasd"
@ -31,8 +34,4 @@ export _FASD_VIMINFO="$XDG_CACHE_HOME/viminfo"
_cache fasd --init posix-alias zsh-{hook,{c,w}comp{,-install}} _cache fasd --init posix-alias zsh-{hook,{c,w}comp{,-install}}
autopair-init autopair-init
#
autoload -Uz compinit && compinit -d $ZSH_CACHE/zcompdump
_load_all aliases.zsh
# vim:set ft=sh: # vim:set ft=sh: