1
0

zsh: rework ZDOTDIR redirection
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-02-29 01:04:53 +03:00
parent 7aac214e04
commit 3321d21f8b
6 changed files with 9 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ unsetopt global_rcs
## safety measure:
## redirect all following activity within ZDOTDIR to cache
export ZDOTDIR="${ZSHU[d_cache]}/dots"
export ZDOTDIR="${ZDOTDIR}/.config/zsh.dots"
## cleanup: start from scratch
for i ( a s f d ) ; do unhash -$i -m '*' ; done ; unset i

View File

@@ -63,6 +63,7 @@ z-reload() {
## reload or new session are required to regenerate compcache
z-cache-flush() {
find "${ZSHU[d_cache]}/" -xdev -type f '!' -name '.keep' -delete
find "${ZSHU[d_zdot]}/.config/zsh.dots/" -xdev -type f '!' -name '.zshenv' -delete
z-zwc-flush
z-zwc-gen
}