mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
2 commits
77a6aadf5e
...
2c3049b5a9
Author | SHA1 | Date | |
---|---|---|---|
|
2c3049b5a9 | ||
|
191fba04bb |
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
ZSH_CACHE_DIR="$HOME/.cache/dotfiles"
|
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/dotfiles"
|
||||||
if [[ ! -d "$ZSH_CACHE_DIR" ]]; then
|
if [[ ! -d "$ZSH_CACHE_DIR" ]]; then
|
||||||
mkdir -pv "$ZSH_CACHE_DIR"
|
mkdir -pv "$ZSH_CACHE_DIR"
|
||||||
fi
|
fi
|
||||||
|
@ -28,7 +28,7 @@ _plugin completions 'zsh-users/zsh-completions' "$_checkout_latest_version"
|
||||||
# . match only plain files
|
# . match only plain files
|
||||||
# m-1 check if the file was modified today
|
# m-1 check if the file was modified today
|
||||||
# see "Filename Generation" in zshexpn(1)
|
# see "Filename Generation" in zshexpn(1)
|
||||||
for match in $HOME/.zcompdump(N.m-1); do
|
for match in "${ZSH_CACHE_DIR}/zcompdump"(N.m-1); do
|
||||||
run_compdump=0
|
run_compdump=0
|
||||||
break
|
break
|
||||||
done; unset match
|
done; unset match
|
||||||
|
@ -36,7 +36,7 @@ _plugin completions 'zsh-users/zsh-completions' "$_checkout_latest_version"
|
||||||
if (( $run_compdump )); then
|
if (( $run_compdump )); then
|
||||||
print -r -- "$0: rebuilding zsh completion dump"
|
print -r -- "$0: rebuilding zsh completion dump"
|
||||||
# -D flag turns off compdump loading
|
# -D flag turns off compdump loading
|
||||||
compinit -D
|
compinit -D -d "${ZSH_CACHE_DIR}/zcompdump"
|
||||||
compdump
|
compdump
|
||||||
else
|
else
|
||||||
# -C flag disables some checks performed by compinit - they are not needed
|
# -C flag disables some checks performed by compinit - they are not needed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue