From 42d858ca7a6b0bd025aa8c5932f0fec83aba48ce Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Feb 2018 05:18:43 -0500 Subject: [PATCH] shell/zsh: read ZSH_CACHE var; fix fasd completion widgets --- shell/zsh/.zshenv | 1 + shell/zsh/.zshrc | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/zsh/.zshenv b/shell/zsh/.zshenv index f5de7127..2f9c1e18 100644 --- a/shell/zsh/.zshenv +++ b/shell/zsh/.zshenv @@ -4,6 +4,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 ZSH_CACHE="$XDG_CACHE_HOME/zsh" # paths typeset -gU cdpath fpath mailpath path diff --git a/shell/zsh/.zshrc b/shell/zsh/.zshrc index 01f86067..06709b23 100644 --- a/shell/zsh/.zshrc +++ b/shell/zsh/.zshrc @@ -19,11 +19,14 @@ if ! zgen saved; then zgen save fi - +_load shell/zsh/prompt.zsh _load shell/zsh/config.zsh _load shell/zsh/completion.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" @@ -31,8 +34,4 @@ export _FASD_VIMINFO="$XDG_CACHE_HOME/viminfo" _cache fasd --init posix-alias zsh-{hook,{c,w}comp{,-install}} autopair-init -# -autoload -Uz compinit && compinit -d $ZSH_CACHE/zcompdump -_load_all aliases.zsh - # vim:set ft=sh: