mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
change cache_path to use XDG_CACHE_HOME or ~/.cache
This commit is contained in:
parent
757fa3314d
commit
e294541b61
1 changed files with 2 additions and 1 deletions
|
|
@ -43,8 +43,9 @@ hosts=(
|
||||||
zstyle ':completion:*:hosts' hosts $hosts
|
zstyle ':completion:*:hosts' hosts $hosts
|
||||||
|
|
||||||
# Use caching so that commands like apt and dpkg complete are useable
|
# Use caching so that commands like apt and dpkg complete are useable
|
||||||
|
[[ -n "$XDG_CACHE_HOME" ]] && cache_dir=$XDG_CACHE_HOME || cache_dir="$HOME/.cache"
|
||||||
zstyle ':completion::complete:*' use-cache 1
|
zstyle ':completion::complete:*' use-cache 1
|
||||||
zstyle ':completion::complete:*' cache-path ~/.oh-my-zsh/cache/
|
zstyle ':completion::complete:*' cache-path $cache_dir/oh-my-zsh/
|
||||||
|
|
||||||
# Don't complete uninteresting users
|
# Don't complete uninteresting users
|
||||||
zstyle ':completion:*:*:*:users' ignored-patterns \
|
zstyle ':completion:*:*:*:users' ignored-patterns \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue