mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
fix(core): move plugin-generated completion files to $ZSH_CACHE_DIR/completions
Fixes #10183
This commit is contained in:
parent
4e6e49652b
commit
d2269180b0
6 changed files with 24 additions and 5 deletions
|
|
@ -7,6 +7,10 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
|
|||
ZSH_CACHE_DIR="$ZSH/cache"
|
||||
fi
|
||||
|
||||
# Create completions cache dir and add to $fpath
|
||||
mkdir -p "$ZSH_CACHE_DIR/completions"
|
||||
(( ${fpath[(Ie)$ZSH_CACHE_DIR/completions]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
||||
|
||||
# Check for updates on initial load...
|
||||
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
||||
source $ZSH/tools/check_for_upgrade.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue